mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2021-12-25 20:02
This commit is contained in:
29
roles/bookstack/templates/bookstack-queue.service.j2
Normal file
29
roles/bookstack/templates/bookstack-queue.service.j2
Normal file
@@ -0,0 +1,29 @@
|
||||
[Unit]
|
||||
Description=BookStack {{ bookstack_id }} Queue Worker
|
||||
|
||||
[Service]
|
||||
User={{ bookstack_php_user }}
|
||||
Group={{ bookstack_php_user }}
|
||||
Restart=always
|
||||
ExecStart=/bin/php{{ bookstack_php_version }} {{ bookstack_root_dir }}/app/artisan queue:work --sleep=3 --tries=1 --max-time=3600
|
||||
NoNewPrivileges=true
|
||||
PrivateDevices=true
|
||||
ProtectControlGroups=true
|
||||
ProtectHome=true
|
||||
ProtectKernelModules=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectSystem=strict
|
||||
RestrictRealtime=true
|
||||
RestrictNamespaces=yes
|
||||
ReadWritePaths={{ bookstack_root_dir }}
|
||||
PrivateTmp=true
|
||||
SystemCallArchitectures=native
|
||||
SystemCallFilter=@system-service
|
||||
SystemCallFilter=~@privileged
|
||||
SystemCallFilter=~@resources
|
||||
SystemCallErrorNumber=EPERM
|
||||
LockPersonality=yes
|
||||
MemoryDenyWriteExecute=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@@ -23,6 +23,7 @@ CACHE_PREFIX=bookstack_{{ bookstack_id }}
|
||||
{% if bookstack_trusted_proxies | length > 0 %}
|
||||
APP_PROXIES={{ bookstack_trusted_proxies | join(',') }}
|
||||
{% endif %}
|
||||
QUEUE_CONNECTION=database
|
||||
{% for key in bookstack_settings.keys() | list %}
|
||||
{{ key }}="{{ bookstack_settings[key] }}"
|
||||
{% endfor %}
|
||||
|
Reference in New Issue
Block a user