mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
fix: generate CSP from runtime storage env for self-hosted MinIO
Move Content-Security-Policy generation to proxy.ts so R2_PRESIGN_ENDPOINT is included at request time instead of being frozen at image build time. Document reverse-proxy layouts for Docker self-hosting and copy proxy.ts into the Docker image. Closes #17
This commit is contained in:
+2
-1
@@ -34,7 +34,8 @@ TRUSTED_PROXY_MODE="nginx"
|
||||
MINIO_ROOT_USER="replace-with-minio-root-user"
|
||||
MINIO_ROOT_PASSWORD="replace-with-strong-minio-password"
|
||||
R2_ENDPOINT="http://minio:9000"
|
||||
# Browser-facing endpoint used for presigned upload URLs (must be reachable from the browser).
|
||||
# Browser-facing MinIO origin for presigned upload URLs (scheme + host, no path).
|
||||
# Use your public MinIO domain when behind a reverse proxy, e.g. https://minio.example.com
|
||||
R2_PRESIGN_ENDPOINT="http://localhost:9000"
|
||||
R2_PUBLIC_BASE_URL="http://localhost:9000/openframe"
|
||||
R2_ACCESS_KEY_ID="replace-with-minio-root-user"
|
||||
|
||||
Reference in New Issue
Block a user