-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathexample.env
More file actions
33 lines (30 loc) · 1.23 KB
/
example.env
File metadata and controls
33 lines (30 loc) · 1.23 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
# Pangolin credentials
API_KEY=YOUR_LONG_BEARER_TOKEN
# Replace with your resource ID and rule ID (find them via GET /resource/{id}/rules in Swagger UI)
RESOURCE_ID=1
RULE_ID=1
RULE_PRIORITY=1
RULE_ACTION=ACCEPT
# Valid values: IP, CIDR, PATH
RULE_MATCH=IP
RULE_ENABLED=True
# Set to a dynamic DNS hostname to resolve its IP instead of this machine's external IP. Leave empty otherwise.
TARGET_DOMAIN=
PANGOLIN_HOST=https://api.pangolin.example
# Runtime controls (optional)
# Comma-separated list of plain-text IP services, rotated round-robin
IP_SERVICE_URL=https://wtfismyip.com/text,https://api.ipify.org,https://icanhazip.com
# Base check interval in seconds
LOOP_SECONDS=60
# Random +/- seconds added to each interval
LOOP_JITTER=10
# Enable this to expose a webhook endpoint to trigger an update on demand.
# When enabled, automatic polling is disabled — updates are triggered by incoming requests.
# Make sure only trusted clients can reach this endpoint.
EXPOSE_TRIGGER_WEBSITE=False
TRIGGER_WEBSITE_DOMAIN=trigger.my.dyn.dns.com
TRIGGER_WEBSITE_PATH=/update
TRIGGER_WEBSITE_PORT=8080
# Optional but recommended when EXPOSE_TRIGGER_WEBSITE=True.
# If set, requests must include ?token=<value> or they are rejected with HTTP 401.
TRIGGER_SECRET=