This commit is contained in:
zino
2023-12-05 19:17:28 +01:00
parent 45274f6145
commit b6e9231ec8

View File

@@ -18,24 +18,26 @@ server {
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; font-src 'self' data:;" always;
include "snippets/enable-vouch.conf";
location / {
#resolver 127.0.0.11;
resolver 127.0.0.11;
set $upstream "code-server:8443";
proxy_http_version 1.1;
#proxy_set_header Host $host;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Accept-Encoding gzip;
proxy_set_header Connection upgrade;
proxy_headers_hash_max_size 512;
proxy_headers_hash_bucket_size 128;
proxy_read_timeout 3600;
proxy_set_header Host $http_host;
#proxy_set_header Host $http_host;
proxy_pass http://$upstream;
}
include "snippets/enable-vouch.conf";
}
server {