mirror of
https://github.com/MaxenceG2M/prometheus-immich-exporter.git
synced 2025-12-09 15:05:36 +00:00
Added an option to verify web UI SSL certificate or not
This commit is contained in:
@@ -34,6 +34,7 @@ class QbittorrentMetricsCollector():
|
||||
port=config["port"],
|
||||
username=config["username"],
|
||||
password=config["password"],
|
||||
VERIFY_WEBUI_CERTIFICATE=config["verify_webui_certificate"]
|
||||
)
|
||||
|
||||
def collect(self):
|
||||
@@ -187,6 +188,7 @@ def main():
|
||||
"exporter_port": int(get_config_value("EXPORTER_PORT", "8000")),
|
||||
"log_level": get_config_value("EXPORTER_LOG_LEVEL", "INFO"),
|
||||
"metrics_prefix": get_config_value("METRICS_PREFIX", "qbittorrent"),
|
||||
"verify_webui_certificate": get_config_value("VERIFY_WEBUI_CERTIFICATE", "True") == "True",
|
||||
}
|
||||
# set level once config has been loaded
|
||||
logger.setLevel(config["log_level"])
|
||||
|
||||
Reference in New Issue
Block a user