Update nginx config to redirect /admin to django
This commit is contained in:
parent
86e6f479ab
commit
87b4a25aa6
|
@ -3,14 +3,7 @@ server {
|
||||||
server_name _;
|
server_name _;
|
||||||
client_max_body_size 5M;
|
client_max_body_size 5M;
|
||||||
|
|
||||||
location /api/ {
|
location ~ ^/(api|django-static|admin) {
|
||||||
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 {
|
|
||||||
proxy_pass http://perktree-backend;
|
proxy_pass http://perktree-backend;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
Reference in New Issue