Merge pull request #138 from nemchik/auth-vars

Fix upstream auth vars
This commit is contained in:
driz 2020-03-13 11:43:18 -04:00 committed by GitHub
commit c712d2156a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,10 +17,10 @@ location ~ /auth-([0-9]+) {
internal; internal;
include /config/nginx/proxy.conf; include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s; resolver 127.0.0.11 valid=30s;
set $upstream_app organizr; set $upstream_auth_app organizr;
set $upstream_port 80; set $upstream_auth_port 80;
set $upstream_proto http; set $upstream_auth_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port/api/?v1/auth&group=$1; proxy_pass $upstream_auth_proto://$upstream_auth_app:$upstream_auth_port/api/?v1/auth&group=$1;
proxy_set_header Content-Length ""; proxy_set_header Content-Length "";
# Do not uncomment the lines below, these are examples for usue in other proxy configs # Do not uncomment the lines below, these are examples for usue in other proxy configs