@@ -15,6 +15,7 @@ type Config struct {
|
||||
DatabaseURL string // OMNEX_DATABASE_URL (DSN PostgreSQL GORM)
|
||||
RedisURL string // OMNEX_REDIS_URL (sessions), ex. redis://:pass@host:6379/0
|
||||
DemoDomain string // domaine des démos
|
||||
DemoHTTPSPort string // port HTTPS public à afficher dans l'URL des démos (443 = omis, sinon ex. NodePort)
|
||||
RegistrationCode string // OMNEX_REGISTRATION_CODE (vide = inscription ouverte)
|
||||
Kubeconfig string
|
||||
FrontendImage string
|
||||
@@ -37,6 +38,7 @@ func Load() (Config, error) {
|
||||
DatabaseURL: os.Getenv("OMNEX_DATABASE_URL"),
|
||||
RedisURL: os.Getenv("OMNEX_REDIS_URL"),
|
||||
DemoDomain: getenv("OMNEX_DEMO_DOMAIN", "demo.omnex.app"),
|
||||
DemoHTTPSPort: getenv("OMNEX_DEMO_HTTPS_PORT", "443"),
|
||||
RegistrationCode: os.Getenv("OMNEX_REGISTRATION_CODE"),
|
||||
Kubeconfig: os.Getenv("KUBECONFIG"),
|
||||
FrontendImage: os.Getenv("FRONTEND_IMAGE_APP"),
|
||||
|
||||
Reference in New Issue
Block a user