added web-ui-control
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user