2023-10-07 07:21:52 +02:00
|
|
|
Listen = ":8080"
|
2023-10-08 20:46:51 +02:00
|
|
|
TemplateDir = "html"
|
2023-10-07 07:21:52 +02:00
|
|
|
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
|
2023-10-11 05:46:49 +02:00
|
|
|
SigningMethod = "HS256" # HS256 | HS384 | HS512
|
2023-10-10 21:52:05 +02:00
|
|
|
Secret = ""
|
2023-10-07 07:21:52 +02:00
|
|
|
|
|
|
|
[IPStack]
|
|
|
|
ApiKey = "HelloWorld"
|
|
|
|
UseHttps = true
|
|
|
|
EnableSecurity = true
|
|
|
|
|
|
|
|
[GeoIP]
|
|
|
|
CountryFile = ""
|
|
|
|
CityFile = ""
|
|
|
|
AsnFile = ""
|