Changed typo, added 80 to 443 redirect for CODE and added shared vars for playbooks

This commit is contained in:
Ebbe Baß
2026-07-15 08:23:41 +02:00
parent 8cc8b950d6
commit 3091393dad
2 changed files with 8 additions and 3 deletions
@@ -129,11 +129,16 @@
- rewrite - rewrite
- headers - headers
- name: Deploy Nextcloud Apache virtual host (HTTP redirect + HTTPS) - name: Deploy Collabora Apache virtual host (HTTP redirect + HTTPS)
ansible.builtin.copy: ansible.builtin.copy:
dest: /etc/apache2/sites-available/nextcloud.conf dest: /etc/apache2/sites-available/collabora.conf
mode: "0644" mode: "0644"
content: | content: |
<VirtualHost *:80>
ServerName {{ collabora_code_domain }}
RewriteEngine On
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
</VirtualHost>
<VirtualHost *:443> <VirtualHost *:443>
ServerName {{ collabora_code_domain }} ServerName {{ collabora_code_domain }}
Options -Indexes Options -Indexes
@@ -1,6 +1,6 @@
nextcloud_version: "34.0.0" nextcloud_version: "34.0.0"
nextcloud_domain: "cloud.test.local" 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" nextcloud_install_dir: "/etc/nextcloud"
nc_db_name: "nextcloud" nc_db_name: "nextcloud"