From 0ce93e03918a7de5c9f3f406ebe4709c65137abd Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 30 Apr 2020 07:38:06 -0500 Subject: [PATCH] Small fixes in vhost --- roles/gitea/templates/apache2-vhost-ssl.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/gitea/templates/apache2-vhost-ssl.conf b/roles/gitea/templates/apache2-vhost-ssl.conf index fc4eada..aeaf894 100644 --- a/roles/gitea/templates/apache2-vhost-ssl.conf +++ b/roles/gitea/templates/apache2-vhost-ssl.conf @@ -3,6 +3,8 @@ # Accept connections from non-SNI clients SSLStrictSNIVHostCheck off +# Need this for SSL proxying, apparently +SSLProxyEngine on # Website configuration @@ -23,7 +25,7 @@ SSLStrictSNIVHostCheck off ProxyPreserveHost On ProxyRequests Off - ProxyPass / https://127.0.0.1:3000/ nocanon + ProxyPass / http://127.0.0.1:3000/ nocanon retry=1 ProxyPassReverse / https://127.0.0.1:3000/ RequestHeader set X_FORWARDED_PROTO 'https'