mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user