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>
(cherry picked from commit ed4a378428)
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com>
This commit is contained in:
Aleksei Sviridkin authored and cozystack-ci[bot] committed 2026-11-26 06:38:37 +00:00
1 parent ad3e088104
commit 9d5ea2b919
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;