helva-robot/drive/etc/nginx/snippets/drive.conf

20 lines
448 B
Plaintext

location ^~ /drive/ {
alias /opt/helva-robot/drive/var/www/drive/;
try_files $uri $uri/ /drive/index.html;
}
location = /drive-ws {
proxy_pass http://127.0.0.1:8002/ws;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_read_timeout 3600;
}
location /drive-health {
proxy_pass http://127.0.0.1:8002/health;
}