mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-24 18:44:04 +03:00
Update nginx.conf (#808)
* Update nginx.conf * Update .editorconfig * Update .editorconfig * Update nginx.conf * Update .editorconfig * Update .editorconfig
This commit is contained in:
parent
bb913b7507
commit
a4884bb5d7
|
@ -21,3 +21,7 @@ trim_trailing_whitespace = false
|
|||
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
|
||||
[nginx.conf]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
|
|
@ -27,3 +27,7 @@ trim_trailing_whitespace = false
|
|||
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
|
||||
[nginx.conf]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
|
|
@ -4,13 +4,11 @@ worker_processes 1;
|
|||
error_log /var/log/nginx/error.log warn;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
|
@ -44,7 +42,6 @@ http {
|
|||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
}
|
||||
|
||||
{% endif %}
|
||||
|
||||
location / {
|
||||
|
@ -52,19 +49,13 @@ http {
|
|||
try_files $uri @proxy_to_app;
|
||||
}
|
||||
|
||||
|
||||
# cookiecutter-django app
|
||||
location @proxy_to_app {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect off;
|
||||
|
||||
proxy_pass http://app;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user