.
This commit is contained in:
magmaus3 2023-06-09 14:49:07 +02:00
parent 7de0dabb54
commit a649becb63
Signed by: magmaus3
GPG key ID: 966755D3F4A9B251

View file

@ -40,10 +40,7 @@ template_env.globals["__version__"] = __version__
BASE_URL = utils.config_value("IWM_SERVER", "http://make.fangam.es") BASE_URL = utils.config_value("IWM_SERVER", "http://make.fangam.es")
THUMB_URL = utils.config_value("IWM_THUMBNAILS", "https://images.make.fangam.es") THUMB_URL = utils.config_value("IWM_THUMBNAILS", "https://images.make.fangam.es")
utils.global_imgproxy_url = utils.config_value("IMGPROXY_URL", None) utils.global_imgproxy_url = utils.config_value("IMGPROXY_URL", None)
utils.global_imgproxy_params = json.loads(utils.config_value("IMGPROXY_PARAMS", '''{ utils.global_imgproxy_params = utils.config_value("IMGPROXY_PARAMS", '{"extension": "webp", "advanced": ["q:50"]}') # Set it to None to disable the proxy params
"extension": "webp",
"advanced": ["q:50"],
}''')) # Set it to None to disable the proxy params
PROXIES = utils.config_value("HTTP_PROXIES", '{}') PROXIES = utils.config_value("HTTP_PROXIES", '{}')