InfluxDB configuration string template builder helper
Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
parent
93be8db612
commit
d434583b53
2 changed files with 26 additions and 3 deletions
|
|
@ -980,9 +980,7 @@ stream {
|
|||
{{ template "CORS" $location }}
|
||||
{{ end }}
|
||||
|
||||
{{ if $location.InfluxDB.InfluxDBEnabled }}
|
||||
influxdb server_name=$location.InfluxDB.InfluxDBServerName host=$location.InfluxDB.InfluxDBHost port=$location.InfluxDB.InfluxDBPort measurement=$location.InfluxDB.InfluxDBMeasurement enabled=true;
|
||||
{{ end }}
|
||||
{{ buildInfluxDB $location.InfluxDB }}
|
||||
|
||||
{{ if not (empty $location.Redirect.URL) }}
|
||||
if ($uri ~* {{ $path }}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue