Skip to content

Cannot get countryCode #3

@Yuenan131

Description

@Yuenan131

hi, i don't know what's the problem with it. Unable to display country_code, it looks like my Geo db is not loading? But I actually pasted the link path correctly Please help me a little, thanks a lot
Result :
Hello from --

{
  http_port     8080
  https_port    8443
  order geo_ip first
}
:8080 {
  geo_ip {
	account_id  ""
	api_key 	""
	reload_frequency 	"1d"
	db_path 	"/var/log/caddy/GeoLite2-Country.mmdb"
	trust_header  "X-Real-IP"
  }
  respond / 200 {
    body "Hello from {geoip.country_code}"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions