1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

updated nginx

This commit is contained in:
Zack Scholl 2016-02-08 12:46:25 -05:00
parent da82a40ffd
commit 25b373e1bb

View File

@ -21,11 +21,11 @@ server {
add_header Cache-Control "public"; add_header Cache-Control "public";
} }
location /static { location ^~ /static {
try_files $uri $uri/ =404; try_files $uri $uri/ =404;
} }
location / { location ~ ^/ {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;