add default proxy pass before ifs

This commit is contained in:
prance 2022-01-30 19:22:11 +01:00
parent cfcdc0547b
commit 415e3e1f9d
2 changed files with 4 additions and 0 deletions

View File

@ -54,6 +54,8 @@ server {
# Finally, send all non-media requests to the Django server. # Finally, send all non-media requests to the Django server.
location / { location / {
proxy_pass http://django; # TODO prolly change that to uwsgi_pass
if ($cookie_sessionid = ""){ if ($cookie_sessionid = ""){
proxy_pass http://django; # TODO prolly change that to uwsgi_pass proxy_pass http://django; # TODO prolly change that to uwsgi_pass
# uwsgi_pass django; # uwsgi_pass django;

View File

@ -55,3 +55,5 @@ server {
# Finally, send all non-media requests to the Django server. # Finally, send all non-media requests to the Django server.
location / { location / {
proxy_pass http://django; # TODO prolly change that to uwsgi_pass