aboutsummaryrefslogtreecommitdiff
path: root/pkg/atlas/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/atlas/config.go')
-rw-r--r--pkg/atlas/config.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/atlas/config.go b/pkg/atlas/config.go
index a0a8108..4f411bc 100644
--- a/pkg/atlas/config.go
+++ b/pkg/atlas/config.go
@@ -164,6 +164,13 @@ type Config struct {
// of top-level names to URLs.
Web string `env:"ATLAS_WEB="`
+ // The path to the IP2Location database, which should contain at least the
+ // country and region fields. The database must not be modified while atlas
+ // is running, but it can be replaced (and a reload can be triggered with
+ // SIGHUP). If not provided, geolocation-dependent features like server
+ // regions will not be enabled.
+ IP2Location string `env:"ATLAS_IP2LOCATION"`
+
// For sd-notify.
NotifySocket string `env:"NOTIFY_SOCKET"`