ansible-roles/roles/unmaintained/psono/templates/psono-server.service.j2
2021-12-01 19:13:34 +01:00

22 lines
526 B
Django/Jinja

[Unit]
Description=Psono password manager API server
After=redis.service postgresql.service postgresql11.service
[Service]
User={{ psono_user }}
WorkingDirectory={{ psono_root_dir }}/server/app/psono
ExecStart={{ psono_root_dir }}/server/venv/bin/gunicorn -b 0.0.0.0:{{ psono_server_port }} wsgi
PrivateTmp=yes
PrivateDevices=yes
ProtectSystem=full
ProtectHome=yes
NoNewPrivileges=yes
MemoryLimit=1024M
SyslogIdentifier=psono-server
Restart=on-failure
StartLimitInterval=0
RestartSec=30
[Install]
WantedBy=multi-user.target