Split organizr-auth into separate conf

This commit is contained in:
Eric Nemchik 2020-01-07 12:55:56 -06:00
commit 3a65854339
3 changed files with 40 additions and 37 deletions

View file

@ -28,23 +28,7 @@ server {
proxy_pass http://$upstream_organizr:80;
}
location ~ /auth-(admin|user) {
# This is used for Organizr V1
internal;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_organizr organizr;
proxy_pass http://$upstream_organizr:80/auth.php?$1;
proxy_set_header Content-Length "";
}
# Optional redirect server errors to organizr error pages
#error_page 400 402 403 404 405 408 500 502 503 504 $scheme://$server_name/?error=$status;
location ~ /auth-([0-9]+) {
# This is used for Organizr V2
internal;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_organizr organizr;
proxy_pass http://$upstream_organizr:80/api/?v1/auth&group=$1;
proxy_set_header Content-Length "";
}
}