Skip to content

Commit

Permalink
Updated config for server
Browse files Browse the repository at this point in the history
  • Loading branch information
djthorpe committed Dec 31, 2020
1 parent 76e62be commit 42f150b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions etc/systemd/httpserver.env
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
1 change: 1 addition & 0 deletions etc/systemd/httpserver.service
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 42f150b

Please sign in to comment.