This commit is contained in:
zino
2023-12-05 15:33:03 +01:00
parent e6786b4e56
commit 128b0a0162
2 changed files with 6 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ server {
#ssl_prefer_server_ciphers on;
#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;
#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;
# Vouch
# send all requests to the `/validate` endpoint for authorization
@@ -24,7 +24,10 @@ server {
location = /validate {
# forward the /validate request to Vouch Proxy
proxy_pass http://127.0.0.1:9090/validate;
#proxy_pass http://127.0.0.1:9090/validate;
# forward the /validate request to Vouch Proxy
proxy_pass http://vouch:9090/validate;
#resolver 127.0.0.11;
#set $upstream "http://vouch:9090/validate";

View File

@@ -23,7 +23,7 @@ server {
#proxy_pass $upstream;
#proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:9090;
proxy_pass http://vouch:9090;
proxy_set_header Host $http_host;
}
}