spark-server/deploy/geo-guard/wyrs-geo-guard.service
DESKTOP-L8OUL9F\gfl0034 94dd2d819c Add mainland China geo gate (allow Shanghai/overseas).
Nginx auth_request plus MaxMind City lookup blocks non-Shanghai mainland CN with a fixed notice page for sparkmessenger/sparkmsg (and deploy helpers for the shared Singapore host).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-22 15:28:04 +08:00

18 lines
409 B
Desktop File

[Unit]
Description=Wyrs CN geo guard (mainland except Shanghai)
After=network.target
Wants=network-online.target
[Service]
Type=simple
Environment=GEOIP_CITY_DB=/usr/share/GeoIP/GeoLite2-City.mmdb
Environment=WYRS_GEO_LISTEN=127.0.0.1
Environment=WYRS_GEO_PORT=18099
ExecStart=/usr/bin/python3 /opt/wyrs-geo-guard/wyrs_geo_guard.py
Restart=always
RestartSec=1
User=root
[Install]
WantedBy=multi-user.target