Initial LisgloSIPS V2 implementation

This commit is contained in:
hectorzhao
2026-06-22 10:56:38 +08:00
commit 5fa1bd35e9
303 changed files with 35644 additions and 0 deletions
@@ -0,0 +1,42 @@
[Unit]
Description=LisgloSIPS %i service
After=network-online.target mysql.service redis-server.service
Wants=network-online.target
[Service]
Type=simple
User=lisglosips
Group=lisglosips
WorkingDirectory=/opt/lisglosips/current
Environment=NODE_ENV=production
EnvironmentFile=/etc/lisglosips/%i.env
ExecStart=/usr/bin/node ${LISGLOSIPS_ENTRYPOINT}
Restart=on-failure
RestartSec=3s
TimeoutStartSec=30s
TimeoutStopSec=30s
KillSignal=SIGTERM
UMask=0027
NoNewPrivileges=true
PrivateTmp=true
PrivateDevices=true
ProtectSystem=strict
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
ProtectClock=true
ProtectHostname=true
RestrictSUIDSGID=true
RestrictRealtime=true
LockPersonality=true
CapabilityBoundingSet=
AmbientCapabilities=
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
StateDirectory=lisglosips
RuntimeDirectory=lisglosips
[Install]
WantedBy=multi-user.target