remove admin access
This commit is contained in:
parent
144a7a499a
commit
8fba0c7136
1 changed files with 11 additions and 10 deletions
|
@ -38,16 +38,17 @@ server {
|
|||
proxy_redirect off;
|
||||
}
|
||||
|
||||
# Django admin access (/admin/)
|
||||
location /admin {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Scheme $scheme;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass http://127.0.0.1:8001$request_uri;
|
||||
proxy_redirect off;
|
||||
}
|
||||
### no more admiin access
|
||||
# # Django admin access (/admin/)
|
||||
# location /admin {
|
||||
# proxy_set_header Host $http_host;
|
||||
# proxy_set_header X-Real-IP $remote_addr;
|
||||
# proxy_set_header X-Scheme $scheme;
|
||||
# proxy_set_header X-Forwarded-Proto $scheme;
|
||||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
# proxy_pass http://127.0.0.1:8001$request_uri;
|
||||
# proxy_redirect off;
|
||||
# }
|
||||
|
||||
# Static files
|
||||
location /static {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue