deploy(hub): serve the bilingual website alongside auth API

This commit is contained in:
Loki 2026-10-24 15:10:24 +02:00
parent 69d065e3a6
commit bc5157046e
Signed by: boba
GPG key ID: 253067914055423B
2 changed files with 24 additions and 1 deletions

View file

@ -33,7 +33,9 @@ server {
proxy_connect_timeout 5s;
proxy_read_timeout 40s;
}
location / {
root /opt/vnox-central/web/current;
index index.html;
location ^~ /v1/ {
proxy_pass http://127.0.0.1:37623;
proxy_http_version 1.1;
proxy_set_header Host $host;
@ -43,4 +45,17 @@ server {
proxy_connect_timeout 5s;
proxy_read_timeout 30s;
}
location = /health { proxy_pass http://127.0.0.1:37623; }
location = /ready { proxy_pass http://127.0.0.1:37623; }
location = /version { proxy_pass http://127.0.0.1:37623; }
location / {
try_files $uri $uri/ /index.html;
add_header Cache-Control "no-store" always;
add_header X-Content-Type-Options nosniff always;
add_header Referrer-Policy no-referrer always;
add_header X-Frame-Options DENY always;
add_header Content-Security-Policy "default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self' https://avatars.githubusercontent.com; connect-src 'self'; font-src 'self'; base-uri 'none'; form-action 'self'; frame-ancestors 'none'; object-src 'none'" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
}
}