website/pkg/config/geo_gate.go

23 lines
521 B
Go
Raw Normal View History

2023-06-24 22:39:45 +00:00
package config
// GeoIP gating rules. TODO: make dynamically configurable.
2023-07-01 23:35:35 +00:00
var GeoGateEnabled bool
2023-06-24 22:39:45 +00:00
// GeoIP database path (standard location on Fedora/Debian)
const GeoIPPath = "/usr/share/GeoIP/GeoLite2-City.mmdb"
// US states to block.
var BlockUSStates = map[string]interface{}{
"UT": nil, // Utah
"LA": nil, // Louisiana
"MS": nil, // Mississippi
"AR": nil, // Arkansas
"MT": nil, // Montana
2023-06-24 22:59:50 +00:00
"TX": nil, // Texas
2023-06-24 22:39:45 +00:00
}
// Countries to block.
var BlockCountries = map[string]interface{}{
2023-06-24 22:51:53 +00:00
// "US": nil, // TEST
2023-06-24 22:39:45 +00:00
}