mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 00:28:05 +02:00
Update to 2022-01-26 18:00
This commit is contained in:
23
roles/taiga/templates/taiga-protected.service.j2
Normal file
23
roles/taiga/templates/taiga-protected.service.j2
Normal file
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=Taiga protected
|
||||
After=network.target rabbitmq-server.service
|
||||
|
||||
[Service]
|
||||
User={{ taiga_user }}
|
||||
Group={{ taiga_user }}
|
||||
Environment=PYTHONUNBUFFERED=true
|
||||
WorkingDirectory={{ taiga_root_dir }}/app/protected
|
||||
ExecStart={{ taiga_root_dir }}/venv/bin/gunicorn --workers 4 --timeout 60 --log-level=info --access-logfile - --bind 127.0.0.1:{{ taiga_ports['protected'] }} server:app
|
||||
PrivateTmp=yes
|
||||
PrivateDevices=yes
|
||||
ProtectSystem=full
|
||||
ProtectHome=yes
|
||||
NoNewPrivileges=yes
|
||||
MemoryLimit=512M
|
||||
SyslogIdentifier=taiga-protected
|
||||
Restart=on-failure
|
||||
StartLimitInterval=0
|
||||
RestartSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user