mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-17 19:37:02 +00:00
28 lines
650 B
Plaintext
Executable File
28 lines
650 B
Plaintext
Executable File
listen 80;
|
|
index index.html;
|
|
root /var/www/public/;
|
|
|
|
location /{{ default .Env.FOLDER_BACKEND "api" }}/ {
|
|
proxy_pass {{ .Env.URL_BACKEND }};
|
|
}
|
|
|
|
location /socket.io/ {
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $host;
|
|
proxy_pass {{ .Env.URL_BACKEND }}socket.io/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
include include.d/nocache.conf;
|
|
}
|
|
|
|
location /static {
|
|
alias /var/www/public/static/;
|
|
include include.d/allcache.conf;
|
|
}
|
|
|
|
include include.d/root.conf; |