InfluxDB configuration string template builder helper

Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
Lorenzo Fontana 2018-05-18 01:49:47 +02:00
parent 93be8db612
commit d434583b53
No known key found for this signature in database
GPG key ID: 0D48B0B074C3DC15
2 changed files with 26 additions and 3 deletions

View file

@ -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 }}) {