Make blocky config a bit more stable by removing templating based on whami
This commit is contained in:
parent
7760d3387e
commit
b8b74e900b
@ -51,14 +51,6 @@ customDNS:
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- with index . $last }}{{ .Address }}{{ end -}}
|
{{- with index . $last }}{{ .Address }}{{ end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ with service "whoami" -}}
|
|
||||||
{{- $last := len . | subtract 1 -}}
|
|
||||||
{{- $services := . -}}
|
|
||||||
whoami: {{ range $i := loop $last -}}
|
|
||||||
{{- with index $services $i }}{{ .Address }},{{ end -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- with index . $last }}{{ .Address }}{{ end -}}
|
|
||||||
{{- end }}
|
|
||||||
# Other mappings
|
# Other mappings
|
||||||
{{ keyOrDefault "blocky/mappings" "# None" | indent 4 }}
|
{{ keyOrDefault "blocky/mappings" "# None" | indent 4 }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user