added web-ui-control

This commit is contained in:
max
2026-02-01 20:42:33 +01:00
parent ac4425bb42
commit 3b07486e32
8 changed files with 581 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
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;
}
location /drive-health {
proxy_pass http://127.0.0.1:8002/health;
}
@@ -0,0 +1,13 @@
[Unit]
Description=Robot Drive Controller (FastAPI -> Serial)
After=network.target
[Service]
WorkingDirectory=/opt/drive-ctl
ExecStart=/opt/drive-ctl-venv/bin/uvicorn server:app --host 127.0.0.1 --port 8002 --app-dir /opt/drive-ctl
Restart=always
RestartSec=1
[Install]
WantedBy=multi-user.target