You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
786 B
INI
27 lines
786 B
INI
[Unit]
|
|
Description=Virsh Panel (local HTTP upstream and remote libvirt)
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=exec
|
|
User=root
|
|
Group=root
|
|
WorkingDirectory=/home/virsh-panel
|
|
Environment=PANEL_DATA_DIR=/home/virsh-panel/data
|
|
Environment=PYTHONDONTWRITEBYTECODE=1
|
|
ExecStartPre=+/usr/bin/install -d -o root -g root -m 0700 /home/virsh-panel/data
|
|
ExecStart=/home/virsh-panel/.venv/bin/python -m uvicorn virsh_panel.app:create_app --factory --host 127.0.0.1 --port 8000 --workers 1 --proxy-headers --forwarded-allow-ips 127.0.0.1
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
UMask=0077
|
|
NoNewPrivileges=true
|
|
CapabilityBoundingSet=CAP_SETPCAP
|
|
PrivateTmp=true
|
|
ProtectSystem=strict
|
|
ProtectHome=false
|
|
ReadWritePaths=-/home/virsh-panel/data
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|