From 262767149a5aaa70c48988bdcae4b2e9bd362475 Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 18 Dec 2020 02:40:27 -0600 Subject: [PATCH] Fix SSL configuration Still have to work on that redirect --- site.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/site.yml b/site.yml index 227c983..15ac6d8 100755 --- a/site.yml +++ b/site.yml @@ -87,15 +87,30 @@ - proxy_http.load - rewrite.load apache_vhosts: + - servername: web1.desu.ltd + serveralias: "*" + extra_parameters: | + RewriteEngine On + RewriteRule "^http\:" "^https:" [R=302,L] + apache_vhosts_ssl: - servername: git.test.desu.ltd extra_parameters: | ProxyPreserveHost On ProxyRequests Off ProxyPass / http://127.0.0.1:3000/ nocanon retry=1 + certificate_file: /etc/letsencrypt/live/desu.ltd/fullchain.pem + certificate_key_file: /etc/letsencrypt/live/desu.ltd/privkey.pem + certificate_chain_file: /etc/letsencrypt/live/desu.ltd/chain.pem - servername: nc.test.desu.ltd documentroot: /var/www/html/nextcloud - - servername: test.desu.ltd + certificate_file: /etc/letsencrypt/live/desu.ltd/fullchain.pem + certificate_key_file: /etc/letsencrypt/live/desu.ltd/privkey.pem + certificate_chain_file: /etc/letsencrypt/live/desu.ltd/chain.pem + - servername: desu.ltd documentroot: /var/www/html/desu.ltd + certificate_file: /etc/letsencrypt/live/desu.ltd/fullchain.pem + certificate_key_file: /etc/letsencrypt/live/desu.ltd/privkey.pem + certificate_chain_file: /etc/letsencrypt/live/desu.ltd/chain.pem become: yes tags: [ web, apache ] - role: certbot