mirror of
https://github.com/NetworkCats/rustyip.git
synced 2026-11-13 16:17:46 +00:00
30 lines
1002 B
Bash
30 lines
1002 B
Bash
# Server listen address
|
|
LISTEN_ADDR=0.0.0.0:3000
|
|
|
|
# Path to the MaxMind DB file (use data/Merged-IP.mmdb for local development)
|
|
DB_PATH=data/Merged-IP.mmdb
|
|
|
|
# URL to download the MMDB database from
|
|
DB_UPDATE_URL=https://github.com/NetworkCats/Merged-IP-Data/releases/latest/download/Merged-IP.mmdb
|
|
|
|
# How often to check for database updates (in hours)
|
|
DB_UPDATE_INTERVAL_HOURS=24
|
|
|
|
# Site domain name (used for display/metadata)
|
|
SITE_DOMAIN=localhost
|
|
|
|
# IPv4-only domain for dual-stack detection (e.g., noipv6.org)
|
|
# Leave empty to disable IPv4 detection for IPv6 users
|
|
IPV4_DOMAIN=
|
|
|
|
# Enable development mode (uses 1.1.1.1 as fallback when CF-Connecting-IP is absent)
|
|
DEV_MODE=false
|
|
|
|
# Path to the TLS certificate directory for HAProxy (main domain)
|
|
# The directory must contain origin.pem (combined cert + key)
|
|
CERT_PATH=./haproxy/certs
|
|
|
|
# Path to the TLS certificate directory for the IPv4-only domain
|
|
# The directory must contain origin.pem (combined cert + key)
|
|
IPV4_CERT_PATH=./haproxy/certs-ipv4
|