2022-06-24 23:09:46 +04:00
|
|
|
[Unit]
|
2022-08-17 21:53:31 +04:00
|
|
|
Description=A simple CAPTCHA service for your website
|
2022-06-24 23:09:46 +04:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Restart=on-failure
|
|
|
|
DynamicUser=yes
|
2022-06-26 20:44:38 +04:00
|
|
|
ExecStart=/usr/bin/justcaptchad -expiry 5m -listen '/var/run/justcaptcha/j.sock'
|
2022-06-24 23:09:46 +04:00
|
|
|
|
|
|
|
ReadOnlyPaths=/
|
|
|
|
# Set here path to directory where uploads are stored.
|
|
|
|
NoExecPaths=/
|
|
|
|
ExecPaths=/usr/bin/justcaptchad
|
|
|
|
|
|
|
|
RuntimeDirectory=justcaptcha
|
|
|
|
|
|
|
|
AmbientCapabilities=
|
|
|
|
CapabilityBoundingSet=
|
|
|
|
|
|
|
|
LockPersonality=true
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
NoNewPrivileges=true
|
|
|
|
PrivateDevices=true
|
|
|
|
ProtectClock=true
|
|
|
|
ProtectControlGroups=true
|
|
|
|
ProtectHome=true
|
|
|
|
ProtectKernelLogs=true
|
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
ProtectSystem=strict
|
|
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
|
|
|
RestrictNamespaces=true
|
|
|
|
RestrictRealtime=true
|
|
|
|
RestrictSUIDSGID=true
|
|
|
|
SystemCallArchitectures=native
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|