m
This commit is contained in:
@@ -22,13 +22,11 @@ server {
|
|||||||
#include "snippets/enable-vouch.conf";
|
#include "snippets/enable-vouch.conf";
|
||||||
|
|
||||||
# send all requests to the `/validate` endpoint for authorization
|
# send all requests to the `/validate` endpoint for authorization
|
||||||
|
auth_request /auth;
|
||||||
|
|
||||||
location .auth {
|
location = /auth {
|
||||||
internal;
|
internal;
|
||||||
proxy_pass https://validate.vouch.armos.zinomedia.de;
|
proxy_pass https://validate.vouch.armos.zinomedia.de$request_uri;
|
||||||
# you must use path part here ^
|
|
||||||
# otherwise it would be invalid request to external.url
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# location = /validate {
|
# location = /validate {
|
||||||
@@ -54,8 +52,6 @@ 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;
|
# 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 / {
|
location / {
|
||||||
auth_request .auth;
|
|
||||||
|
|
||||||
resolver 127.0.0.11;
|
resolver 127.0.0.11;
|
||||||
set $upstream "http://code-server:8443";
|
set $upstream "http://code-server:8443";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user