Skip to content

Commit

Permalink
Add support for ssl configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mranest authored and janw committed Oct 4, 2019
1 parent ea22713 commit 7218b93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion default.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ log_level = "info"
influxdb_host = "127.0.0.1"
influxdb_port = "8086"
influxdb_database = "pihole"
influxdb_ssl = "False"
influxdb_verify_ssl = "True"

request_timeout = 10
reporting_interval = 30
Expand All @@ -12,4 +14,4 @@ instances="localhost=http://127.0.0.1/admin/api.php"

[development]

[production]
[production]
2 changes: 2 additions & 0 deletions piholeinflux.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def __init__(self, single_run=False):
username=settings.get("INFLUXDB_USERNAME"),
password=settings.get("INFLUXDB_PASSWORD"),
database=settings.INFLUXDB_DATABASE,
ssl=settings.as_bool("INFLUXDB_SSL"),
verify_ssl=settings.as_bool("INFLUXDB_VERIFY_SSL"),
)
self.single_run = single_run

Expand Down

0 comments on commit 7218b93

Please sign in to comment.