Files
frontend/nginx.tmpl
sharkoz 1008d99144 Update nginx.tmpl
Co-Authored-By: Linus Groh <mail@linusgroh.de>
2019-09-03 21:37:37 +02:00

28 lines
648 B
Cheetah

worker_processes 1;
events {
worker_connections 1024;
}
http {
upstream otrecorder {
server ${SERVER_URL}:${SERVER_PORT};
}
server {
listen ${LISTEN_PORT};
root /usr/share/nginx/html;
location /api {
proxy_pass http://otrecorder/api/;
}
location /ws {
proxy_pass http://otrecorder/ws/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
}
location / {
include /etc/nginx/mime.types;
try_files $uri $uri/index.html;
}
}
}