fix: Make CORS origins configurable via environment variable
continuous-integration/drone/push Build is passing

Add CORS_ORIGINS environment variable to allow configuring allowed
origins in production. Defaults to the Traefik domain.
This commit is contained in:
Paul Nothaft
2026-01-04 23:35:28 +01:00
parent 335c512125
commit fc9898c59b
3 changed files with 10 additions and 6 deletions
+2
View File
@@ -42,6 +42,8 @@ services:
- REPORT_SENDER=${REPORT_SENDER:-}
- REPORT_RECIPIENT=${REPORT_RECIPIENT:-}
- REPORT_SCHEDULE=${REPORT_SCHEDULE:-0 0 * * 1}
# CORS configuration
- CORS_ORIGINS=${CORS_ORIGINS:-https://minio-webui.local.nothaft.cloud}
volumes:
- /mnt/DockerMount/minio-webui/logs:/app/logs
- /mnt/DockerMount/minio-webui/mc-config:/home/nodejs/.mc