Snibox
This commit is contained in:
2020-10-17 12:28:52 +05:30
parent 5c22100376
commit 5922227712
5 changed files with 165 additions and 0 deletions

View File

@ -0,0 +1,27 @@
server {
listen 80;
server_name {{ http_host }};
# Allow large attachments
client_max_body_size 128M;
location @proxy-backend {
proxy_pass http://proxy_backend;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Host $host;
proxy_redirect off;
}
location / {
root /var/lib/{{ host_directory }}/frontend;
index index.html index.htm;
try_files $uri/index.html $uri @proxy-backend;
}
}
upstream proxy_backend {
server localhost:3003;
}