Add Web 2 workspace and controlled deployment updates

This commit is contained in:
AttilaNet
2026-11-10 16:33:14 +08:00
parent 7fe4c0ffdf
commit dbb31707ea
58 changed files with 11283 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
[Unit]
Description=Check or apply official stable Ranch Web 2 updates
Requires=docker.service
After=docker.service network-online.target
Wants=network-online.target
ConditionPathExists=/etc/ranch-web-updater.toml
[Service]
Type=oneshot
User=root
Group=root
WorkingDirectory=/opt/ranch-web
ExecStart=/usr/bin/python3 -B /opt/ranch-web/deploy/web/updater.py --config /etc/ranch-web-updater.toml --run
TimeoutStartSec=30min
TimeoutStopSec=180s
UMask=0077
NoNewPrivileges=true
PrivateTmp=true
# Allow read-only access to root's registry credentials for private GHCR pulls.
ProtectHome=read-only
ProtectSystem=strict
ReadWritePaths=/opt/ranch-web
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
StandardOutput=journal
StandardError=journal