feat: add app download
This commit is contained in:
@@ -21,6 +21,7 @@ type Config struct {
|
||||
FrontendImage string
|
||||
BackendImage string
|
||||
LBTelegramImage string
|
||||
AppDownloadsDir string // OMNEX_APP_DOWNLOADS_DIR : répertoire des .apk téléchargeables (voir internal/downloads)
|
||||
}
|
||||
|
||||
// Load lit la config. Fail-secure : secret JWT obligatoire ; en prod base + Redis aussi.
|
||||
@@ -45,6 +46,7 @@ func Load() (Config, error) {
|
||||
FrontendImage: os.Getenv("FRONTEND_IMAGE_APP"),
|
||||
BackendImage: os.Getenv("BACKEND_IMAGE_APP"),
|
||||
LBTelegramImage: os.Getenv("LBTELEGRAM_IMAGE_APP"),
|
||||
AppDownloadsDir: getenv("OMNEX_APP_DOWNLOADS_DIR", "/app-downloads"),
|
||||
}
|
||||
|
||||
if cfg.Env == "prod" {
|
||||
|
||||
Reference in New Issue
Block a user