mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 08:36:55 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
9
roles/nginx/templates/ansible_conf.d/maintenance.inc.j2
Normal file
9
roles/nginx/templates/ansible_conf.d/maintenance.inc.j2
Normal file
@@ -0,0 +1,9 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user