mirror of
https://github.com/NetworkCats/rustyip.git
synced 2026-11-13 16:17:46 +00:00
Replace DB_UPDATE_INTERVAL_HOURS with DB_UPDATE_TIME_UTC (HH:MM format, default 01:20) so the database update runs at a predictable time each day. This ensures the update happens 20 minutes after the upstream Merged IP Data release at 01:00 UTC.
31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
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
|
|
|
|
# Daily UTC time to update the database (HH:MM format)
|
|
# Merged IP Data releases at 01:00 UTC; this should be at least 20 minutes later
|
|
DB_UPDATE_TIME_UTC=01:20
|
|
|
|
# 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
|