Skip to content

Commit 26345f6

Browse files
authored
Merge pull request owntracks#9 from suhlig/google-api-key
Expose browser-apikey via environment variable
2 parents 6eeef51 + ff59dd5 commit 26345f6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ docker run -v /tmp/o2:/owntracks -p 11883:1883 -p 18883:8883 -p 8083:8083 \
88
-e MQTTHOSTNAME="${cthostname}" \
99
-e IPLIST="192.168.1.1 127.0.0.83 192.168.1.82" \
1010
-e HOSTLIST="foo.example.com bar.org.example.com ${cthostname}" \
11+
-e OTR_BROWSERAPIKEY="replace-me" \
1112
owntracks/recorderd

supervisord.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ auto_start=true
2020
autorestart=true
2121

2222
[program:recorder]
23-
command=/usr/sbin/ot-recorder --http-host 0.0.0.0 'owntracks/#'
23+
command=/usr/sbin/ot-recorder --http-host 0.0.0.0 --browser-apikey %(ENV_OTR_BROWSERAPIKEY)s 'owntracks/#'
2424
redirect_stderr=true
2525
stdout_logfile=/dev/stdout
2626
stdout_logfile_maxbytes=0

0 commit comments

Comments
 (0)