2023-06-24 22:39:45 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
// GeoIP gating rules. TODO: make dynamically configurable.
|
|
|
|
|
|
|
|
// 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
|
|
|
}
|