mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-14 18:48:11 -07:00
Split organizr-auth into separate conf
This commit is contained in:
parent
a24e8c0f1b
commit
3a65854339
3 changed files with 40 additions and 37 deletions
|
@ -15,22 +15,5 @@ location / {
|
|||
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 "";
|
||||
}
|
||||
|
||||
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 "";
|
||||
}
|
||||
# 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue