[Unit]
Description=Guanghu Gatekeeper v3.2 (GLSV)
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=guanghu
Group=guanghu
WorkingDirectory=/opt/guanghu/fifth-domain/zero-point/core-channel/gatekeeper
Environment=NODE_ENV=production
Environment=ENGINE_HOST=127.0.0.1
Environment=ENGINE_PORT=3911
Environment=GATEKEEPER_DATA_DIR=/var/lib/guanghu/gatekeeper
Environment=GATEKEEPER_SECRET_PATH=/var/lib/guanghu/gatekeeper/secret
EnvironmentFile=-/etc/guanghu/gatekeeper.env
ExecStart=/usr/bin/node /opt/guanghu/fifth-domain/zero-point/core-channel/gatekeeper/engine-v3.js
Restart=always
RestartSec=3
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
ReadWritePaths=/var/lib/guanghu/gatekeeper /var/log/guanghu

[Install]
WantedBy=multi-user.target
