File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,12 @@ if [ -f /usr/local/homer/etc/webapp_config.json ]; then
15
15
if [ -n " $DB_PASS " ]; then sed -i " s/homer_password/${DB_PASS} /g" /usr/local/homer/etc/webapp_config.json; fi
16
16
if [ -n " $DB_KEEPALIVE " ]; then sed -i " s/homer_db_keepalive/${DB_KEEPALIVE} /g" /usr/local/homer/etc/webapp_config.json; fi
17
17
18
- if [ -n " $HOMER_LOGLEVEL " ]; then sed -i " s/homer_loglevel/${HOMER_LOGLEVEL} /g" /usr/local/homer/etc/webapp_config.json;
18
+ if [ -n " $HOMER_LOGLEVEL " ]; then sed -i " s/homer_loglevel/${HOMER_LOGLEVEL} /g" /usr/local/homer/etc/webapp_config.json;
19
19
else sed -i " s/homer_loglevel/error/g" /usr/local/homer/etc/webapp_config.json; fi
20
20
21
+ if [ -n " $HOMER_ENABLE_API " ]; then sed -i " s/homer_enable_api/${HOMER_ENABLE_API} /g" /usr/local/homer/etc/webapp_config.json;
22
+ else sed -i " s/homer_enable_api/false/g" /usr/local/homer/etc/webapp_config.json; fi
23
+
21
24
if [ -n " $INFLUX_HOST " ]; then sed -i " s/influx_host/${INFLUX_HOST} /g" /usr/local/homer/etc/webapp_config.json; fi
22
25
if [ -n " $INFLUX_USER " ]; then sed -i " s/influx_user/${INFLUX_USER} /g" /usr/local/homer/etc/webapp_config.json; fi
23
26
if [ -n " $INFLUX_PASS " ]; then sed -i " s/influx_pass/${INFLUX_PASS} /g" /usr/local/homer/etc/webapp_config.json; fi
Original file line number Diff line number Diff line change 40
40
"host" : " http://loki_host:3100" ,
41
41
"api" : " api/prom"
42
42
},
43
+ "api_settings" : {
44
+ "enable_token_auth" : homer_enable_api
45
+ },
43
46
"http_settings" : {
44
47
"host" : " 0.0.0.0" ,
45
48
"port" : homer_web_port,
You can’t perform that action at this time.
0 commit comments