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>
18 lines
409 B
Desktop File
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
|