mirror of
https://github.com/owntracks/frontend.git
synced 2026-05-05 03:06:32 +00:00
28 lines
648 B
Cheetah
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;
|
|
}
|
|
}
|
|
}
|
|
|