Quellcode durchsuchen

suppress newlines

tags/v0.55.0
Kent Shultz vor 10 Jahren
Ursprung
Commit
8f894ea6e6
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. +3
    -3
      nginx/templates/config.jinja

+ 3
- 3
nginx/templates/config.jinja Datei anzeigen

@@ -55,14 +55,14 @@ http {
}
}
{% if pillar['nginx'] is defined -%}
{% if pillar['nginx']['redirect_numeric_ip']|default(False) %}
{% if pillar['nginx']['redirect_numeric_ip']|default(False) -%}
server {
server_name {% for ip in salt['network.interfaces']()['eth0']['inet'] %}{{ ip['address'] }}:80{% if not loop.last %} {% endif %}{% endfor %};
return 302 {{ pillar['nginx']['redirect_numeric_ip'] }};
access_log off;
}
{% endif %}
{% endif %}
{% endif -%}
{% endif -%}

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*.conf;

Laden…
Abbrechen
Speichern