diff --git a/etc/systemd/httpserver.env b/etc/systemd/httpserver.env index eb1ed39a..8b657547 100644 --- a/etc/systemd/httpserver.env +++ b/etc/systemd/httpserver.env @@ -4,3 +4,8 @@ SSLCERT="" SSLKEY="" ADDR=":8080" NAME="" + +# Set host, database, username and password to write metrics to +INFLUX_DB="https://localhost/metrics" +INFLUX_USERNAME="" +INFLUX_PASSWORD="" diff --git a/etc/systemd/httpserver.service b/etc/systemd/httpserver.service index f3bf3496..897df0c6 100644 --- a/etc/systemd/httpserver.service +++ b/etc/systemd/httpserver.service @@ -12,5 +12,6 @@ Group=gopi EnvironmentFile=/opt/gopi/etc/httpserver.env ExecStart=/opt/gopi/bin/httpserver \ -ssl.cert="${SSLCERT}" -ssl.key="${SSLKEY}" -addr="${ADDR}" -name="${NAME}" \ + -influxdb.url="${INFLUX_DB}" \ serve /opt/gopi/var/htdocs Restart=on-failure