Update nginx config to redirect /admin to django

This commit is contained in:
Pavle Portic 2019-03-26 05:01:12 +01:00
parent 86e6f479ab
commit 87b4a25aa6
Signed by: TheEdgeOfRage
GPG Key ID: 6758ACE46AA2A849
1 changed files with 1 additions and 8 deletions

View File

@ -3,14 +3,7 @@ server {
server_name _;
client_max_body_size 5M;
location /api/ {
proxy_pass http://perktree-backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /django-static {
location ~ ^/(api|django-static|admin) {
proxy_pass http://perktree-backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;