[deploy] Anywhere: the Docker image and compose file (edge and control), the Linux installer and systemd units, the Windows Server installer (Caddy mode, three services), the preview client for Fabrica, and the Windows smoke script
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# Ianitor control: API and web UI on 127.0.0.1:7878 (deploy/linux/install.sh writes this).
|
||||
[Unit]
|
||||
Description=Ianitor control (API and UI on loopback)
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
User=ianitor
|
||||
Group=ianitor
|
||||
Environment=IANITOR_LOG=info
|
||||
ExecStart=/usr/local/bin/ianitor-control --config /etc/ianitor/control.toml
|
||||
# After every stop, a crash included: a trial still loaded into Caddy goes back at once.
|
||||
ExecStopPost=/usr/local/bin/ianitor-control caddy-revert --config /etc/ianitor/control.toml
|
||||
Restart=on-failure
|
||||
RestartSec=2
|
||||
ReadWritePaths=/var/lib/ianitor
|
||||
NoNewPrivileges=yes
|
||||
ProtectSystem=strict
|
||||
ProtectHome=yes
|
||||
PrivateTmp=yes
|
||||
PrivateDevices=yes
|
||||
ProtectKernelTunables=yes
|
||||
ProtectKernelModules=yes
|
||||
ProtectControlGroups=yes
|
||||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
||||
RestrictNamespaces=yes
|
||||
LockPersonality=yes
|
||||
MemoryDenyWriteExecute=yes
|
||||
SystemCallArchitectures=native
|
||||
CapabilityBoundingSet=
|
||||
UMask=0027
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user