From a32700a219cdd7bc75f9a6d75a954c8e94738a78 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 18 Jul 2019 00:17:21 +0000 Subject: [PATCH] pagure /staging: Fix up some redirects/proxies for letsencrypt Signed-off-by: Kevin Fenzi --- roles/pagure/frontend/templates/0_pagure.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/pagure/frontend/templates/0_pagure.conf b/roles/pagure/frontend/templates/0_pagure.conf index 8968f11cae..d33f8403b1 100644 --- a/roles/pagure/frontend/templates/0_pagure.conf +++ b/roles/pagure/frontend/templates/0_pagure.conf @@ -21,6 +21,7 @@ WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-na {% if env == 'pagure-staging' %} ServerName docs.stg.pagure.org + ProxyPass "/.well-known/acme-challenge" "http://certgetter01/.well-known/acme-challenge" Redirect permanent / https://docs.stg.pagure.org/ {% else %} ServerName docs.pagure.org @@ -31,19 +32,19 @@ WSGIDaemonProcess paguredocs user=git group=git maximum-requests=1000 display-na {% if env == 'pagure-staging' %} ServerName releases.stg.pagure.org - #Redirect permanent / https://releases.stg.pagure.org/ ProxyPass "/.well-known/acme-challenge" "http://certgetter01/.well-known/acme-challenge" + Redirect permanent / https://releases.stg.pagure.org/ {% else %} ServerName releases.pagure.org - #Redirect permanent / https://releases.pagure.org/ + Redirect permanent / https://releases.pagure.org/ {% endif %} {% if env == 'pagure-staging' %} ServerName stg.pagure.org - #Redirect permanent / https://releases.stg.pagure.org/ ProxyPass "/.well-known/acme-challenge" "http://certgetter01/.well-known/acme-challenge" + Redirect permanent / https://releases.stg.pagure.org/ {% else %} ServerName pagure.org #Redirect permanent / https://releases.pagure.org/