deploy(hub): serve the bilingual website alongside auth API
This commit is contained in:
parent
69d065e3a6
commit
bc5157046e
2 changed files with 24 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue