Changed typo, added 80 to 443 redirect for CODE and added shared vars for playbooks
This commit is contained in:
@@ -129,11 +129,16 @@
|
||||
- rewrite
|
||||
- headers
|
||||
|
||||
- name: Deploy Nextcloud Apache virtual host (HTTP redirect + HTTPS)
|
||||
- name: Deploy Collabora Apache virtual host (HTTP redirect + HTTPS)
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/apache2/sites-available/nextcloud.conf
|
||||
dest: /etc/apache2/sites-available/collabora.conf
|
||||
mode: "0644"
|
||||
content: |
|
||||
<VirtualHost *:80>
|
||||
ServerName {{ collabora_code_domain }}
|
||||
RewriteEngine On
|
||||
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
|
||||
</VirtualHost>
|
||||
<VirtualHost *:443>
|
||||
ServerName {{ collabora_code_domain }}
|
||||
Options -Indexes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
nextcloud_version: "34.0.0"
|
||||
nextcloud_domain: "cloud.test.local"
|
||||
nextcloud_data_dir: "/etc/nextcloud/data"
|
||||
nextcloud_data_dir: "/etc/nextcloud/data" # /etc/nextcloud is recommendet as the install dir by the hardening guide!
|
||||
nextcloud_install_dir: "/etc/nextcloud"
|
||||
|
||||
nc_db_name: "nextcloud"
|
||||
|
||||
Reference in New Issue
Block a user