Merge branch 'master' into feature/discourse_garage
This commit is contained in:
commit
4baff4cc03
@ -30,14 +30,18 @@ server {
|
|||||||
expires max;
|
expires max;
|
||||||
add_header Cache-Control public;
|
add_header Cache-Control public;
|
||||||
proxy_cache akkounts_cache;
|
proxy_cache akkounts_cache;
|
||||||
|
<% if @upstream_hosts.first != "localhost" %>
|
||||||
|
try_files $uri @proxy;
|
||||||
|
<% end %>
|
||||||
}
|
}
|
||||||
|
|
||||||
try_files $uri/index.html $uri @proxy;
|
try_files $uri/index.html $uri @proxy;
|
||||||
|
|
||||||
location @proxy {
|
location @proxy {
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
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 X-Forwarded-Proto https;
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
proxy_set_header Host $http_host;
|
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_buffers 1024 8k;
|
proxy_buffers 1024 8k;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user