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;
|
proxy_redirect off;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Django admin access (/admin/)
|
### no more admiin access
|
||||||
location /admin {
|
# # Django admin access (/admin/)
|
||||||
proxy_set_header Host $http_host;
|
# location /admin {
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
# proxy_set_header Host $http_host;
|
||||||
proxy_set_header X-Scheme $scheme;
|
# proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
# proxy_set_header X-Scheme $scheme;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
# proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_pass http://127.0.0.1:8001$request_uri;
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_redirect off;
|
# proxy_pass http://127.0.0.1:8001$request_uri;
|
||||||
}
|
# proxy_redirect off;
|
||||||
|
# }
|
||||||
|
|
||||||
# Static files
|
# Static files
|
||||||
location /static {
|
location /static {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue