NTP_V2/src/NTP.Api/appsettings.Production.json

35 lines
1.6 KiB
JSON

{
// Production environment (ASPNETCORE_ENVIRONMENT=Production). Only NON-SECRET settings live in this file; see docs/ENVIRONMENTS.md.
// Supplied by the production server environment (environment variables / secret store), never committed:
// ConnectionStrings__NAFITHTCS, ConnectionStrings__NtpSchema Oracle connection strings of the production database
// Jwt__Key JWT signing key, at least 32 random characters (the app will not start without it)
// Cors__AllowedOrigins__0 origin of the production web app, e.g. https://<web-host>
// Auth__SuperUsers__0 ... logins that may hold role SU (none by default in production)
"Logging": {
"LogLevel": {
"Default": "Warning",
"NTP": "Information"
}
},
// Index 0 replaces the localhost default of appsettings.json. Until it is set the API allows no browser origin (fails closed).
"Cors": {
"AllowedOrigins": [ "https://REPLACE-WITH-PRODUCTION-WEB-ORIGIN" ]
},
"Oracle": {
"MinPoolSize": 5,
"MaxPoolSize": 100
},
// Attachments of trucks / trailers / drivers are read and written on the shared folder /mnt/NTPFiles
// (mounted into the container, see deploy/prod/docker-compose.yml). Stored files go to
// <UploadedFilesPath>/ntp_trucks_files | ntp_trailers_files | ntp_drivers_files; uploads wait in TempUploadPath until Save.
"Grains": {
"Registry": {
"UploadedFilesPath": "/app/NTPFiles:/mnt/NTPFile",
"TempUploadPath": "/app/NTPFiles/tempuploadedfiles:/mnt/NTPFiles/tempuploadedfiles"
}
}
}