echoip/etc/echoip/config.toml

27 lines
532 B
TOML
Raw Normal View History

Listen = ":8080"
TemplateDir = "html"
RedisUrl = "redis://localhost:6379"
CacheTtl = 3600 # in seconds
ReverseLookup = true
PortLookup = true
ShowSponsor = true
Database = "ipstack" # use "IP Stack" or "GeoIP"
TrustedHeaders = []
2023-10-10 21:52:05 +02:00
Profile = false # enable profiling
Debug = false # enable debugging, ex print jwt token errors
[Jwt]
Enabled = false
SigningMethod = "HS256" # HS256 | HS384 | HS512
2023-10-10 21:52:05 +02:00
Secret = ""
[IPStack]
ApiKey = "HelloWorld"
UseHttps = true
EnableSecurity = true
[GeoIP]
CountryFile = ""
CityFile = ""
AsnFile = ""