mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-10-07 06:54:55 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=Paperemerge web service
|
||||
After=postgresql.service
|
||||
Requires=papermerge-worker.service
|
||||
|
||||
[Service]
|
||||
WorkingDirectory={{ papermerge_root_dir }}/app
|
||||
Environment=DJANGO_SETTINGS_MODULE=config.settings.production
|
||||
ExecStart={{ papermerge_root_dir }}/venv/bin/gunicorn config.wsgi:application --config {{ papermerge_root_dir }}/app/gunicorn.conf.py
|
||||
User={{ papermerge_user }}
|
||||
Group={{ papermerge_user }}
|
||||
PrivateTmp=yes
|
||||
PrivateDevices=yes
|
||||
ProtectSystem=full
|
||||
ProtectHome=yes
|
||||
NoNewPrivileges=yes
|
||||
MemoryLimit=1024M
|
||||
Restart=on-failure
|
||||
StartLimitInterval=0
|
||||
RestartSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user