From 64773f2049be72b50b6acb551ea0ccd6fcbfb86f Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Thu, 4 Jun 2020 14:11:50 +0200 Subject: [PATCH] distgit/pagure: iad2 has the same rules as staging, python 3.6 Signed-off-by: Pierre-Yves Chibon --- roles/distgit/pagure/templates/z_pagure.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/distgit/pagure/templates/z_pagure.conf b/roles/distgit/pagure/templates/z_pagure.conf index 6e7a6c105b..7e4806643b 100644 --- a/roles/distgit/pagure/templates/z_pagure.conf +++ b/roles/distgit/pagure/templates/z_pagure.conf @@ -18,7 +18,7 @@ WSGIProcessGroup pagureproc # SSLCertificateChainFile /etc/pki/tls/certs/pagure.io.intermediate.cert # SSLCertificateKeyFile /etc/pki/tls/certs/pagure.io.key -{% if env == "staging" %} +{% if env == "staging" or datacenter == "iad2" %} Alias /static /usr/lib/python3.6/site-packages/pagure/static/ {% else %} Alias /static /usr/lib/python2.7/site-packages/pagure/static/ @@ -37,7 +37,7 @@ RewriteCond "/usr/share/pagure_dist_git/static/$1" -f RewriteRule "^/static/(.*)" "/usr/share/pagure_dist_git/static/$1" [L] # Use the application default theme for files not customized -{% if env == "staging" %} +{% if env == "staging" or datacenter == "iad2" %} RewriteRule "^/static/(.*)" "/usr/lib/python3.6/site-packages/pagure/static/$1" [L] {% else %} RewriteRule "^/static/(.*)" "/usr/lib/python2.7/site-packages/pagure/static/$1" [L]