Support local web activation over a restricted Unix socket

This commit is contained in:
parkel committed 2026-11-21 01:10:25 +01:00
1 parent 1fbe97d879
commit 7f706c39b5
6 files changed
+144 -2

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
[Unit]
Description=Coulobre local web activation socket
[Socket]
ListenStream=/run/coulobre-web-apply.sock
SocketUser=root
SocketGroup=coulobre-web-provisioning
SocketMode=0660
Accept=yes
MaxConnections=4
RemoveOnStop=true
[Install]
WantedBy=sockets.target
@@ -0,0 +1,20 @@
[Unit]
Description=Coulobre local web activation request
After=apache2.service php8.5-fpm.service
CollectMode=inactive-or-failed
[Service]
Type=exec
User=root
WorkingDirectory=/opt/coulobre
UMask=0022
ExecStart=/opt/coulobre/bin/coulobre-web-node apply-request
StandardInput=socket
StandardOutput=socket
StandardError=journal
RuntimeMaxSec=3min
KillSignal=SIGINT
KillMode=mixed
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true