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:
ayurishchevandClaude Sonnet 5.5 committed 2026-10-07 13:28:30 +03:00
1 parent d38acd74de
commit d5e83eaff5
13 files changed
+211 -17

No files matched your search

+3
View File
@@ -3,6 +3,7 @@
# First start only: OVPMON_INITIAL_ADMIN_USER / OVPMON_INITIAL_ADMIN_PASSWORD in .env
# Optional: OVPMON_CORS_ORIGINS, 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)
#
# Variants A (this file) and B (docker-compose.yml) publish the same host ports and use fixed
@@ -48,6 +49,8 @@ services:
OVPMON_INITIAL_ADMIN_USER: ${OVPMON_INITIAL_ADMIN_USER:-}
OVPMON_INITIAL_ADMIN_PASSWORD: ${OVPMON_INITIAL_ADMIN_PASSWORD:-}
OVPMON_CORS_ORIGINS: ${OVPMON_CORS_ORIGINS:-}
# Extra connect-src origins of the CSP (API on another host), separated by spaces; validated at start
OVP_CSP_CONNECT_EXTRA: ${OVPMON_CSP_CONNECT_EXTRA:-}
healthcheck:
# UI through Nginx, profiler root (FastAPI) and TCP connect to the Flask API
test: