Update bookwyrm-server.service

This commit is contained in:
Thomas 2023-11-08 16:52:55 +01:00 committed by GitHub
parent 5432626842
commit f308179daa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,15 +11,15 @@ WorkingDirectory=__INSTALL_DIR__/
EnvironmentFile=__INSTALL_DIR__/.env EnvironmentFile=__INSTALL_DIR__/.env
ExecStart=__INSTALL_DIR__/venv/bin/gunicorn bookwyrm.wsgi:application --bind 127.0.0.1:__PORT__ ExecStart=__INSTALL_DIR__/venv/bin/gunicorn bookwyrm.wsgi:application --bind 127.0.0.1:__PORT__
#ProtectSystem=strict ProtectSystem=strict
ProtectHome=tmpfs ProtectHome=tmpfs
InaccessiblePaths=-/media -/mnt -/srv InaccessiblePaths=-/media -/mnt -/srv
PrivateTmp=yes PrivateTmp=yes
#TemporaryFileSystem=/var /run #TemporaryFileSystem=/var /run
#PrivateUsers=true #PrivateUsers=true
#PrivateDevices=true #PrivateDevices=true
BindReadOnlyPaths=__INSTALL_DIR__ #BindReadOnlyPaths=__INSTALL_DIR__
BindPaths=__INSTALL_DIR__/images __INSTALL_DIR__/static /var/run/postgresql #BindPaths=__INSTALL_DIR__/images __INSTALL_DIR__/static /var/run/postgresql
LockPersonality=yes LockPersonality=yes
MemoryDenyWriteExecute=true MemoryDenyWriteExecute=true
PrivateMounts=true PrivateMounts=true