build
This commit is contained in:
parent
351f7e919b
commit
866bd8ba28
3 changed files with 35 additions and 1 deletions
16
configs/systemd/spectralvpn_api.service
Normal file
16
configs/systemd/spectralvpn_api.service
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=API SpectralVPN
|
||||
After=network.target
|
||||
Wants=network.target
|
||||
|
||||
[Service]
|
||||
User = root
|
||||
WorkingDirectory=/etc/spectralvpn_api
|
||||
Environment="PATH=/etc/spectralvpn_api/.venv/bin"
|
||||
ExecStart=/etc/spectralvpn_api/.venv/bin/uvicorn main:app
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
KillMode=control-group
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue