From 0e9b43438b9efd8f85e79ad4412f4eb29c333600 Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 30 Apr 2020 06:21:25 -0500 Subject: [PATCH] Add the right module --- roles/gitea/tasks/main.yml | 6 ++++++ roles/gitea/templates/apache2-vhost-ssl.conf | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/roles/gitea/tasks/main.yml b/roles/gitea/tasks/main.yml index 31192a5..9f88e85 100644 --- a/roles/gitea/tasks/main.yml +++ b/roles/gitea/tasks/main.yml @@ -21,6 +21,12 @@ login_password: "{{ mysql_root_password }}" - name: Set up Apache block: + - name: Enable modules + command: + cmd: a2enmod "{{ item }}" + creates: "/etc/apache2/mods-enabled/{{ item }}.load" + loop: + - proxy - name: Template out vhost template: src: "apache2-vhost-ssl.conf" diff --git a/roles/gitea/templates/apache2-vhost-ssl.conf b/roles/gitea/templates/apache2-vhost-ssl.conf index a13e5c6..fc4eada 100644 --- a/roles/gitea/templates/apache2-vhost-ssl.conf +++ b/roles/gitea/templates/apache2-vhost-ssl.conf @@ -21,7 +21,8 @@ SSLStrictSNIVHostCheck off AllowOverride All Options MultiViews FollowSymlinks - ProxyRequests off + ProxyPreserveHost On + ProxyRequests Off ProxyPass / https://127.0.0.1:3000/ nocanon ProxyPassReverse / https://127.0.0.1:3000/