Skip to content

Commit

Permalink
Update nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
sunu committed Dec 20, 2023
1 parent 086b4d6 commit 4d21258
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions helm/osmcha/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,28 @@ app:
location @proxy_to_frontend {
root /assets;
try_files $uri @django;
try_files $uri;
}
location / {
root /assets;
# checks for static file, if not found proxy to app
try_files $uri $uri/;
}
location /api {
try_files $uri $uri/ @django;
}
location /admin {
try_files $uri $uri/ @django;
}
# cookiecutter-django app
location @django {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://app;
}
}
}

0 comments on commit 4d21258

Please sign in to comment.