first commit

This commit is contained in:
thuanle
2024-07-13 23:58:47 +07:00
parent 5a47b94c85
commit 4bb5ee09f0
23 changed files with 650316 additions and 0 deletions

11
configs/config.go Normal file
View File

@@ -0,0 +1,11 @@
package configs
var GeoDbSourcePaths = []string{
"https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-country/geolite2-country-ipv4.csv",
"https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-asn/geolite2-asn-ipv4.csv",
}
const GeoDbFolder = "data/"
const MmdbmeldConfig = "mmdbmeld.yml"
const MmdbDbFile = GeoDbFolder + "geoip-v4.mmdb"

7
configs/key/env.go Normal file
View File

@@ -0,0 +1,7 @@
package key
const (
EnvApiPort = "API_PORT"
EnvGinTrustedProxyIp = "GIN_TRUSTED_PROXY_IP"
)