style(ingress): drop blank lines from the Cloudflare geo block

The range over the Cloudflare ranges kept the newlines around its
actions, so the rendered geo block had an empty line between every
entry. nginx accepts either form; the trimmed one is easier to read
when debugging the generated config.

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
This commit is contained in:
Aleksei Sviridkin committed 2026-11-26 03:31:51 +03:00
1 parent 00a540eb62
commit ed4a378428
1 file changed
+2 -2
@@ -138,9 +138,9 @@ spec:
}
geo $cozy_cf_source $cozy_cf_trusted {
default 0;
{{ range $cidr := splitList "," (include "ingress.cloudflare-ips" .) }}
{{- range $cidr := splitList "," (include "ingress.cloudflare-ips" .) }}
{{ $cidr }} 1;
{{ end }}
{{- end }}
}
map "$cozy_cf_trusted:$http_cf_connecting_ip" $cozy_cf_reject {
default 0;