chore: fix
ci-api / test (push) Successful in 26m33s

This commit is contained in:
Nuxgrid
2026-08-01 16:33:08 +02:00
parent 7374616e4a
commit 6e77f05f00
3 changed files with 16 additions and 1 deletions
@@ -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"),