playbooks/iot/files/nginx.conf.j2
2023-07-13 15:05:00 +05:30

21 lines
376 B
Django/Jinja

server {
listen 80;
server_name {{ http_host }};
location / {
proxy_set_header Host $http_host;
proxy_pass http://localhost:3005/;
}
location /api/live/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_pass http://localhost:3005/;
}
}