Skip to content
Snippets Groups Projects
Commit c042f0b2 authored by Tee's avatar Tee
Browse files

stechuhr-server.service working

parent bf567b5a
Branches
No related tags found
No related merge requests found
[Unit]
Description="stechuhr-server daemon, receives Post requests"
Before=nginx.service
[Service]
ExecStart=/usr/bin/python /srv/stechuhr-server/stechuhr_server/server.py
Type=simple
User=wwwrun
ExecStart=/srv/stechuhr-server/env/bin/gunicorn stechuhr_server.server:app
Restart=always
RestartSec=30
PrivateDevices=yes
PrivateTmp=yes
ProtectSystem=full
NoNewPrivileges=yes
AmbientCapabilities=CAP_NET_BIND_SERVICE
WorkingDirectory=/srv/stechuhr-server
[Install]
WantedBy=network.target
\ No newline at end of file
WantedBy=multi-user.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment