Expose browser-apikey via environment variable

Add `--browser-apikey` to `supervisord.conf`, reading its value from the `OTR_BROWSERAPIKEY` environment variable.
This commit is contained in:
Steffen Uhlig
2016-11-19 23:09:32 +01:00
parent 6eeef51e4b
commit ff59dd5f77
2 changed files with 2 additions and 1 deletions

1
run.sh
View File

@@ -8,4 +8,5 @@ docker run -v /tmp/o2:/owntracks -p 11883:1883 -p 18883:8883 -p 8083:8083 \
-e MQTTHOSTNAME="${cthostname}" \
-e IPLIST="192.168.1.1 127.0.0.83 192.168.1.82" \
-e HOSTLIST="foo.example.com bar.org.example.com ${cthostname}" \
-e OTR_BROWSERAPIKEY="replace-me" \
owntracks/recorderd

View File

@@ -20,7 +20,7 @@ auto_start=true
autorestart=true
[program:recorder]
command=/usr/sbin/ot-recorder --http-host 0.0.0.0 'owntracks/#'
command=/usr/sbin/ot-recorder --http-host 0.0.0.0 --browser-apikey %(ENV_OTR_BROWSERAPIKEY)s 'owntracks/#'
redirect_stderr=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0