mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-16 10:13:26 +02:00
10 lines
270 B
Django/Jinja
10 lines
270 B
Django/Jinja
set $maintenance 1;
|
|
{% for ip in nginx_maintenance_ip %}
|
|
if ($remote_addr ~ "^{{ ip | replace('.','\.') }}") {
|
|
set $maintenance 0;
|
|
}
|
|
{% endfor %}
|
|
if ($maintenance = 1) {
|
|
rewrite (.*) https://downtime.{{ nginx_primary_domain | default(ansible_domain) }}/ redirect;
|
|
}
|