modified
This commit is contained in:
@@ -16,7 +16,7 @@ server {
|
|||||||
#ssl_prefer_server_ciphers on;
|
#ssl_prefer_server_ciphers on;
|
||||||
|
|
||||||
#add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
#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
|
# Vouch
|
||||||
# send all requests to the `/validate` endpoint for authorization
|
# send all requests to the `/validate` endpoint for authorization
|
||||||
@@ -24,7 +24,10 @@ server {
|
|||||||
|
|
||||||
location = /validate {
|
location = /validate {
|
||||||
# forward the /validate request to Vouch Proxy
|
# 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;
|
#resolver 127.0.0.11;
|
||||||
#set $upstream "http://vouch:9090/validate";
|
#set $upstream "http://vouch:9090/validate";
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ server {
|
|||||||
#proxy_pass $upstream;
|
#proxy_pass $upstream;
|
||||||
#proxy_set_header Host $http_host;
|
#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;
|
proxy_set_header Host $http_host;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user