m
This commit is contained in:
@@ -21,18 +21,18 @@ server {
|
||||
include "snippets/enable-vouch.conf";
|
||||
|
||||
location / {
|
||||
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;
|
||||
|
||||
resolver 127.0.0.11;
|
||||
set $upstream "http://code-server:8443";
|
||||
|
||||
|
||||
|
||||
#proxy_http_version 1.1;
|
||||
#proxy_set_header Host $host;
|
||||
proxy_pass_request_body on;
|
||||
default_type text/html;
|
||||
proxy_set_header Connection $http_connection;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Accept-Encoding gzip;
|
||||
@@ -40,7 +40,7 @@ server {
|
||||
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 $upstream;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user