This commit is contained in:
zino
2023-12-05 23:28:33 +01:00
parent 97477e8532
commit 9af967b5d3

View File

@@ -23,9 +23,6 @@ server {
#include "snippets/enable-vouch-no-subdomain.conf";
#include "snippets/enable-vouch.conf";
# send all requests to the `/validate` endpoint for authorization
auth_request /validate;
location = /validate {
internal;
proxy_pass https://validate.vouch.armos.zinomedia.de;
@@ -75,6 +72,9 @@ server {
# return 302 https://vouch.armos.zinomedia.de/login?url=$scheme://$http_host$request_uri&vouch-failcount=$auth_resp_failcount&X-Vouch-Token=$auth_resp_jwt&error=$auth_resp_err;
# }
location / {
# send all requests to the `/validate` endpoint for authorization
auth_request /validate;
resolver 127.0.0.11;
set $upstream "http://code-server:8443";