-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
45 lines (38 loc) · 1.27 KB
/
.env.example
File metadata and controls
45 lines (38 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Stack Configuration
STACK_NAME=ip_mydomain_com
# Timezone
TIME_ZONE=UTC
# Service Configuration
# DNS must resolve to ${SERVICE_HOSTNAME}
SERVICE_HOSTNAME=ip.mydomain.com
# Rate Limiting (requests per minute)
RATE_LIMIT=480/minute
# MaxMind GeoIP Configuration
# Register at https://www.maxmind.com/en/geolite2/signup to get credentials
MAXMIND_ACCOUNT_ID=your_account_id
MAXMIND_LICENSE_KEY=your_license_key
# GeoIP Database Update Frequency (in hours)
# 0 = download once and exit, 168 = weekly (default)
GEOIP_UPDATE_FREQUENCY=168
# Traefik Configuration (only for docker-compose.traefik.yml)
PROXY_NETWORK=EDGEPROXY
# Available Endpoints:
# -> ${SERVICE_HOSTNAME}/ => Web UI with JavaScript IP resolution
# -> ${SERVICE_HOSTNAME}/raw => IP address as plain text
# -> ${SERVICE_HOSTNAME}/json => IP address as JSON (includes country info)
#
# DNS-based IP version selection:
# -> v4.${SERVICE_HOSTNAME} => IPv4 only (DNS A record)
# -> v6.${SERVICE_HOSTNAME} => IPv6 only (DNS AAAA record)
#
# JSON Response Format:
# {
# "IP": "203.0.113.42",
# "COUNTRY": {
# "CODE": "DE",
# "NAME": "Germany"
# }
# }
#
# Note: COUNTRY is only included when GeoIP database is available.
# Without MaxMind credentials, the service works normally but without country detection.