diff --git a/roles/common/templates/apache-remoteip.conf b/roles/common/templates/apache-remoteip.conf index 8b06b92..eba7a67 100644 --- a/roles/common/templates/apache-remoteip.conf +++ b/roles/common/templates/apache-remoteip.conf @@ -14,6 +14,9 @@ {% elif vm_host in ["osm32.openstreetmap.fr", "osm33.openstreetmap.fr", "osm34.openstreetmap.fr"] %} RemoteIPInternalProxy 10.1.0.103 RemoteIPHeader X-Forwarded-For +{% elif vm_host in ["osm38.openstreetmap.fr", "osm39.openstreetmap.fr", "osm40.openstreetmap.fr", "osm41.openstreetmap.fr", "osm42.openstreetmap.fr", "osm43.openstreetmap.fr", "osm44.openstreetmap.fr"] %} + RemoteIPInternalProxy 10.1.0.100 + RemoteIPHeader X-Forwarded-For {% endif %} {% endif %} diff --git a/roles/common/templates/nginx-forwarded_ip.conf b/roles/common/templates/nginx-forwarded_ip.conf index c81e46e..204f12f 100644 --- a/roles/common/templates/nginx-forwarded_ip.conf +++ b/roles/common/templates/nginx-forwarded_ip.conf @@ -12,5 +12,8 @@ real_ip_header X-Forwarded-For; {% elif vm_host in ["osm32.openstreetmap.fr", "osm33.openstreetmap.fr", "osm34.openstreetmap.fr"] %} set_real_ip_from 10.1.0.103; real_ip_header X-Forwarded-For; +{% elif vm_host in ["osm38.openstreetmap.fr", "osm39.openstreetmap.fr", "osm40.openstreetmap.fr", "osm41.openstreetmap.fr", "osm42.openstreetmap.fr", "osm43.openstreetmap.fr", "osm44.openstreetmap.fr"] %} +set_real_ip_from 10.1.0.100; +real_ip_header X-Forwarded-For; {% endif %} {% endif %}