@ -9,3 +9,4 @@ db:
dbname: invidious
full_refresh: false
https_only: false
geo_bypass: true
@ -106,6 +106,7 @@ spawn do
end
proxies = {} of String => Array({ip: String, port: Int32})
if CONFIG.geo_bypass
spawn do
find_working_proxies(BYPASS_REGIONS) do |region, list|
if !list.empty?
@ -113,6 +114,7 @@ spawn do
before_all do |env|
env.response.headers["X-XSS-Protection"] = "1; mode=block;"
@ -14,6 +14,7 @@ class Config
https_only: Bool?,
hmac_key: String?,
full_refresh: Bool,
geo_bypass: Bool,
})