mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-26 23:23:22 +02:00
10 lines
270 B
Plaintext
10 lines
270 B
Plaintext
![]() |
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;
|
||
|
}
|