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'