summaryrefslogtreecommitdiff
path: root/deploy
diff options
context:
space:
mode:
authorsergei <sergei@em-sysadmin.xyz>2026-04-14 06:23:55 +0400
committersergei <sergei@em-sysadmin.xyz>2026-04-14 06:23:55 +0400
commit3d51aa455006903345f554a2dd90034993796114 (patch)
tree62a7be2faf047f5eb7886feebc3b815556f03d7f /deploy
downloadvpnem-main.tar.gz
vpnem-main.tar.bz2
vpnem-main.zip
vpnem: VPN infrastructure with load-balanced multi-protocol nodesHEADmain
- Multi-protocol VPS nodes (VLESS-REALITY + Hysteria2 + SOCKS5) - Smart load balancing via recommendation API - Windows/Linux client (Go + Wails + sing-box) - Server API with RealIP detection and connection tracking - Auto-deployment via vpnui control plane - Silent Windows installer with UAC elevation - Load-based server recommendation (no sticky sessions) - Best Server one-click connection workflow
Diffstat (limited to 'deploy')
-rw-r--r--deploy/systemd/vpnem-rulesets-update.service11
-rw-r--r--deploy/systemd/vpnem-rulesets-update.timer12
2 files changed, 23 insertions, 0 deletions
diff --git a/deploy/systemd/vpnem-rulesets-update.service b/deploy/systemd/vpnem-rulesets-update.service
new file mode 100644
index 0000000..a8fe708
--- /dev/null
+++ b/deploy/systemd/vpnem-rulesets-update.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Update vpnem published rule-set artifacts
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=oneshot
+WorkingDirectory=/opt/vpnem
+ExecStart=/opt/vpnem/scripts/update-rulesets.sh /opt/vpnem/data/rules
+User=root
+Group=root
diff --git a/deploy/systemd/vpnem-rulesets-update.timer b/deploy/systemd/vpnem-rulesets-update.timer
new file mode 100644
index 0000000..e0acc94
--- /dev/null
+++ b/deploy/systemd/vpnem-rulesets-update.timer
@@ -0,0 +1,12 @@
+[Unit]
+Description=Run vpnem rule-set updater on a schedule
+
+[Timer]
+OnBootSec=10m
+OnUnitActiveSec=12h
+RandomizedDelaySec=15m
+Persistent=true
+Unit=vpnem-rulesets-update.service
+
+[Install]
+WantedBy=timers.target