Skip to content

Commit 2bb8da0

Browse files
committed
Improve template newline stripping
1 parent eab0a35 commit 2bb8da0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roles/rproxy/templates/trento.conf.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ upstream {{ wanda_upstream }} {
1515
upstream prometheus {
1616
server {{ rproxy_prometheus_host }}:{{ rproxy_prometheus_port }} max_fails=5 fail_timeout=60s;
1717
}
18-
{% endif -%}
18+
{% endif %}
1919

2020
server {
2121
# Redirect HTTP to HTTPS
@@ -36,7 +36,7 @@ server {
3636
ssl_prefer_server_ciphers on;
3737
ssl_session_cache shared:SSL:10m;
3838

39-
{% if rproxy_provision_prometheus -%}
39+
{% if rproxy_provision_prometheus %}
4040
# Prometheus rule
4141
location /prometheus/ {
4242
allow all;
@@ -51,7 +51,7 @@ server {
5151
# https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass
5252
proxy_pass http://prometheus/;
5353
}
54-
{% endif -%}
54+
{% endif %}
5555

5656
# Wanda rule
5757
location {{ wanda_location }}/ {

0 commit comments

Comments
 (0)