UI delivery, stage B: single CSP with optional connect-src origins (OVPMON_CSP_CONNECT_EXTRA)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d38acd74de
commit
d5e83eaff5
13 files changed
+211
-17
No files matched your search
@@ -3,6 +3,7 @@
|
||||
# First start only: OVPMON_INITIAL_ADMIN_USER / OVPMON_INITIAL_ADMIN_PASSWORD in .env
|
||||
# Optional: OVPMON_CORS_ORIGINS (comma-separated origins; off by default, UI is same-origin via Nginx)
|
||||
# Optional: OVPMON_HTTP_PORT (host port of the UI, default 80), OVPMON_VPN_PORT (host UDP port of OpenVPN, default 1194)
|
||||
# Optional: OVPMON_CSP_CONNECT_EXTRA (origins the UI may call besides its own, e.g. https://api.example.com; empty by default)
|
||||
# Install/update with the scripts in deploy/docker (see DOCS/Deployment/Containers/README.md)
|
||||
|
||||
x-secret: &jwt-secret
|
||||
@@ -25,6 +26,8 @@ services:
|
||||
OVP_API_PORT: 5001
|
||||
OVP_PROFILER_HOST: ovp-profiler
|
||||
OVP_PROFILER_PORT: 8000
|
||||
# Extra connect-src origins of the CSP (API on another host), separated by spaces; empty = same origin only
|
||||
OVP_CSP_CONNECT_EXTRA: ${OVPMON_CSP_CONNECT_EXTRA:-}
|
||||
healthcheck:
|
||||
# busybox wget exists in nginx:alpine
|
||||
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1/"]
|
||||
|
||||
Reference in new issue
Block a user