﻿{
  "Port": 5000,
  "Logging": {
    "IncludeScopes": false,
    "LogLevel": {
      "Default": "Warning"
    }
  },

  //CORS settings for Multiple environments the application is currently running in [Development, Staging, Production]
  "CORS": {
    "Development": {
      "Origins": [ "https://docker-hip.cs.upb.de", "http://localhost:3000" ],
      "Headers": [ "*" ],
      "Methods": [ "*" ],
      "ExposedHeaders": [ "Content-Disposition" ]
    },
    "Production": {
      "Origins": [ "https://docker-hip.cs.upb.de" ],
      "Headers": [ "*" ],
      "Methods": [ "GET", "PUT", "POST", "DELETE" ],
      "ExposedHeaders": [ "Content-Disposition" ]
    }
  },

  "UploadingFiles": {
    "Path": "Media",

    //has to have same key names as on of MediaType constant names
    "SupportedFormats": {
      "Audio": [ "mp3", "m4a" ],
      "Image": [ "jpg", "png" ]
    }
  },
  "Endpoints": {
    "MongoDbHost": "mongodb://localhost:27017",
    "MongoDbName": "main"

    // the remaining endpoints should be configured in appsettings.development.json or via environment variables
  },
  "ExhibitPages": {
    "FontFamilies": [ "DEFAULT", "AlteSchwabacher" ],
    "DefaultFontFamily": "DEFAULT"
  }
}

﻿{
  "Port": 5000,
  "Logging": {
    "IncludeScopes": false,
    "LogLevel": {
      "Default": "Warning"
    }
  },

  //CORS settings for Multiple environments the application is currently running in [Development, Staging, Production]
  "CORS": {
    "Development": {
      "Origins": [ "https://docker-hip.cs.upb.de", "http://localhost:3000", "http://localhost:8080" ],
      "Headers": [ "*" ],
      "Methods": [ "*" ],
      "ExposedHeaders": [ "Content-Disposition" ]
    },
    "Production": {
      "Origins": [ "https://docker-hip.cs.upb.de" ],
      "Headers": [ "*" ],
      "Methods": [ "GET", "PUT", "POST", "DELETE" ],
      "ExposedHeaders": [ "Content-Disposition" ]
    }
  },

  "UploadingFiles": {
    "Path": "Media",

    //has to have same key names as on of MediaType constant names
    "SupportedFormats": {
      "Audio": [ "mp3", "m4a" ],
      "Image": [ "jpg", "png" ]
    }
  },
  "Endpoints": {
    "MongoDbHost": "mongodb://localhost:27017",
    "MongoDbName": "main"

    // the remaining endpoints should be configured in appsettings.development.json or via environment variables
  },
  "ExhibitPages": {
    "FontFamilies": [ "DEFAULT", "AlteSchwabacher" ],
    "DefaultFontFamily": "DEFAULT"
  }
}

Allow Origin localhost:8080 in development mode
Allow Origin localhost:8080 in development mode
