1st Version with a web and flask server on the device

This commit is contained in:
2024-03-20 21:32:56 +01:00
parent fcaa0d5d72
commit f9a4bf7d8d
22 changed files with 975 additions and 51 deletions

View File

@@ -0,0 +1,20 @@
[Unit]
Description=gunicorn daemon for vrpmdv_web
Requires=vrpmdv_web.socket
After=network.target
[Service]
User=root
Group=www-data
Type=notify
RuntimeDirectory=gunicorn
WorkingDirectory=/var/www/vrpmdv-web.local/
ExecStart=/usr/bin/gunicorn vrpmdvserver:app
ExecReload=/bin/kill -s HUP $MAINPID
KillMode=mixed
TimeoutStopSec=5
PrivateTmp=true
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,9 @@
[Unit]
Description=gunicorn socket for vrpmdv_web
[Socket]
ListenStream=/run/vrpmdv_web.sock
SocketUser=www
[Install]
WantedBy=sockets.target