|
| 1 | +# OrderMonitor API - Environment Configuration |
| 2 | +# This file contains ALL configuration values for the application. |
| 3 | +# Override precedence: K8s Secrets > ConfigMap > OS env vars > this file |
| 4 | +# |
| 5 | +# Key naming: Use double-underscore (__) as hierarchy separator. |
| 6 | +# Example: Database__ConnectionString maps to IConfiguration["Database:ConnectionString"] |
| 7 | + |
| 8 | +# ===== Database Configuration ===== |
| 9 | +Database__Provider: "sqlserver" # sqlserver | mysql | postgresql |
| 10 | +Database__ConnectionString: "" # Full connection string (without password if using EncryptedPassword) |
| 11 | +Database__EncryptedPassword: "" # Base64-encoded AES-encrypted password |
| 12 | +Database__EncryptionKey: "" # AES-256 key for decrypting EncryptedPassword (32 chars) |
| 13 | +Database__MaxPoolSize: "100" |
| 14 | +Database__CommandTimeout: "30" |
| 15 | + |
| 16 | +# ===== SMTP Configuration ===== |
| 17 | +SmtpSettings__Host: "" |
| 18 | +SmtpSettings__Port: "587" |
| 19 | +SmtpSettings__Username: "" |
| 20 | +SmtpSettings__Password: "" # Encrypted SMTP password |
| 21 | +SmtpSettings__FromEmail: "" |
| 22 | +SmtpSettings__UseSsl: "true" |
| 23 | + |
| 24 | +# ===== Alert Configuration ===== |
| 25 | +Alerts__Enabled: "true" |
| 26 | +Alerts__Recipients: "" # Comma-separated email addresses |
| 27 | +Alerts__SubjectPrefix: "[Order Monitor]" |
| 28 | + |
| 29 | +# ===== Scanner Configuration ===== |
| 30 | +Scanner__Enabled: "true" |
| 31 | +Scanner__IntervalMinutes: "15" |
| 32 | +Scanner__BatchSize: "1000" |
| 33 | + |
| 34 | +# ===== Status Thresholds ===== |
| 35 | +StatusThresholds__PrepStatuses__MinStatusId: "3001" |
| 36 | +StatusThresholds__PrepStatuses__MaxStatusId: "3910" |
| 37 | +StatusThresholds__PrepStatuses__ThresholdHours: "6" |
| 38 | +StatusThresholds__FacilityStatuses__MinStatusId: "4001" |
| 39 | +StatusThresholds__FacilityStatuses__MaxStatusId: "5830" |
| 40 | +StatusThresholds__FacilityStatuses__ThresholdHours: "48" |
| 41 | + |
| 42 | +# ===== Business Hours ===== |
| 43 | +BusinessHours__Timezone: "Europe/London" |
| 44 | +BusinessHours__StartHour: "0" # 0 = full 24-hour days |
| 45 | +BusinessHours__EndHour: "0" |
| 46 | +BusinessHours__Holidays: "" # Comma-separated yyyy-MM-dd dates |
| 47 | + |
| 48 | +# ===== Health Check ===== |
| 49 | +HealthCheck__Path: "/health" |
| 50 | +HealthCheck__IncludeDatabase: "true" |
| 51 | + |
| 52 | +# ===== Swagger ===== |
| 53 | +Swagger__Enabled: "true" |
| 54 | +Swagger__Title: "OrderMonitor API" |
| 55 | +Swagger__Version: "v1" |
| 56 | + |
| 57 | +# ===== Logging ===== |
| 58 | +Logging__LogLevel__Default: "Information" |
| 59 | +Logging__LogLevel__Microsoft.AspNetCore: "Warning" |
| 60 | +Logging__LogLevel__OrderMonitor: "Debug" |
| 61 | + |
| 62 | +# ===== Application ===== |
| 63 | +AllowedHosts: "*" |
| 64 | +ASPNETCORE_ENVIRONMENT: "Production" |
| 65 | +ASPNETCORE_URLS: "http://+:8080" |
0 commit comments