Update to 2021-12-25 20:02

This commit is contained in:
Daniel Berteaud
2021-12-25 20:02:20 +01:00
parent 121f3646b7
commit 489c627e9d
8 changed files with 55 additions and 3 deletions

View 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

View File

@@ -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 %}