diff --git a/roles/totpcgi/templates/configmap.yml b/roles/totpcgi/templates/configmap.yml index 2d70707205..bd44488add 100644 --- a/roles/totpcgi/templates/configmap.yml +++ b/roles/totpcgi/templates/configmap.yml @@ -105,8 +105,10 @@ data: ServerName fas-all.stg.phx2.fedoraproject.org:8443 {% elif objectname == "configmap-totpcgi-vpn.yml" %} ServerName fas-all.vpn.fedoraproject.org:8443 -{% else %} +{% elif datacenter == 'phx2' %} ServerName fas-all.phx2.fedoraproject.org:8443 +{% elif datacenter == 'iad2' %} + ServerName fas-all.iad2.fedoraproject.org:8443 {% endif %} SSLEngine on {% if objectname == "configmap-totpcgi-vpn.yml" %} diff --git a/roles/totpcgi/templates/totpcgi-httpd.conf.j2 b/roles/totpcgi/templates/totpcgi-httpd.conf.j2 index caa1c6767f..e9fd6d546d 100644 --- a/roles/totpcgi/templates/totpcgi-httpd.conf.j2 +++ b/roles/totpcgi/templates/totpcgi-httpd.conf.j2 @@ -5,7 +5,11 @@ Listen 8443 ServerAdmin admin@fedoraproject.org DocumentRoot /var/www/totpcgi +{% if datacenter == 'phx2' %} ServerName fas-all.phx2.fedoraproject.org:8443 +{% elif datacenter == 'iad2' %} + ServerName fas-all.iad2.fedoraproject.org:8443 +{% endif %} ErrorLog /var/log/httpd/totpcgi-error.log SuexecUserGroup totpcgi totpcgi