18 lines
456 B
Desktop File
18 lines
456 B
Desktop File
[Unit]
|
|
Description=TimeMaster Backend API
|
|
After=network.target postgresql.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=timemaster
|
|
Group=timemaster
|
|
PrivateTmp=true
|
|
WorkingDirectory=/opt/timemaster/backend
|
|
Environment=PATH=/opt/timemaster/backend/venv/bin
|
|
ExecStart=/opt/timemaster/backend/venv/bin/uvicorn app.main:app --host 127.0.0.1 --port 8000 --proxy-headers --forwarded-allow-ips=127.0.0.1
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|