1
1
Fork 0

Add nginx config for the catacomb auth server

This commit is contained in:
Jaculabilis 2022-01-02 20:57:46 +00:00
parent 37ea881b01
commit 4e73e04688
1 changed files with 18 additions and 4 deletions

View File

@ -10,10 +10,24 @@
extraConfig = '' extraConfig = ''
access_log /var/log/nginx/access.catacomb.log; access_log /var/log/nginx/access.catacomb.log;
''; '';
locations."/".extraConfig = '' locations = {
# Forwards to the index server
"/browse/".proxyPass = "http://10.7.3.16:7472/browse/";
# Forwards to nginx via catacomb auth server
"/".extraConfig = ''
auth_request /auth;
proxy_buffering off; proxy_buffering off;
proxy_pass http://10.7.3.16:7473/; proxy_pass http://10.7.3.16:7470/;
''; '';
"= /auth".extraConfig = ''
internal;
proxy_buffering off;
proxy_pass_request_body off;
proxy_pass http://10.7.3.16:7471/;
proxy_set_header Content-Length "";
proxy_set_header X-Original-URI $request_uri;
'';
};
}; };
} }