Fix akkounts asset requests when nginx is on proxy

This commit is contained in:
Râu Cao 2023-03-17 19:29:24 +07:00
parent d8d1609572
commit f34647b2bd
Signed by: raucao
GPG Key ID: 15E65F399D084BA9
1 changed files with 5 additions and 1 deletions

View File

@ -30,14 +30,18 @@ server {
expires max;
add_header Cache-Control public;
proxy_cache akkounts_cache;
<% if @upstream_hosts.first != "localhost" %>
try_files $uri @proxy;
<% end %>
}
try_files $uri/index.html $uri @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-Proto https;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_buffers 1024 8k;
proxy_http_version 1.1;