Solved Matomo, Peertube, Nextcloud Bugs

This commit is contained in:
2025-02-21 08:59:07 +01:00
parent 10b2ead705
commit 0805929d41
11 changed files with 33 additions and 25 deletions

View File

@@ -1,11 +1,9 @@
- name: "include role receive certbot certificate"
include_role:
name: nginx-https-recieve-certificate
vars:
domain: "{{domains[application_id]}}"
- name: configure {{domains[application_id]}}.conf
- name: configure {{domain}}.conf
template:
src: "mastodon.conf.j2"
dest: "{{nginx.directories.http.servers}}{{domains[application_id]}}.conf"
dest: "{{nginx.directories.http.servers}}{{domain}}.conf"
notify: restart nginx

View File

@@ -3,11 +3,13 @@
include_role:
name: docker-central-database
- name: "include create-domains.yml"
- name: "include create-domains.yml for mastodon"
include_tasks: create-domains.yml
loop: "{{ [domain] + domains.mastodon_alternates }}"
loop: "{{ [domains.mastodon] + domains.mastodon_alternates }}"
loop_control:
loop_var: domain
vars:
http: "{{ ports.localhost.http[application_id] }}"
- name: "copy docker-compose.yml and env file"
include_tasks: copy-docker-compose-and-env.yml

View File

@@ -18,5 +18,11 @@ SMTP_NAME= {{system_email.username}}
SMTP_PASSWORD= {{system_email.password}}
# Email from configuration
MAIL_FROM_ADDRESS=no-reply
MAIL_DOMAIN= {{system_email.domain}}
MAIL_FROM_ADDRESS= {{system_email.local}}
MAIL_DOMAIN= {{system_email.domain}}
# Initial Admin Data
NEXTCLOUD_ADMIN_USER= {{applications.[application_id].credentials.administrator_username}}
NEXTCLOUD_ADMIN_PASSWORD= {{applications.[application_id].credentials.administrator_initial_password}}
NEXTCLOUD_TRUSTED_DOMAINS= {{domains[application_id]}}

View File

@@ -1,6 +1,6 @@
---
application_id: "nextcloud"
database_password: "{{applications.nextcloud.database_password}}"
database_password: "{{applications.nextcloud.credentials.database_password}}"
database_type: "mariadb"
nextcloud_application_container_name: "nextcloud-application"
nextcloud_nginx_container_name: "nextcloud-web"

View File

@@ -1,11 +1,9 @@
- name: "include role receive certbot certificate"
include_role:
name: nginx-https-recieve-certificate
vars:
domain: "{{domains[application_id]}}"
- name: configure {{domains[application_id]}}.conf
- name: configure {{domain}}.conf
template:
src: "templates/peertube.conf.j2"
dest: "{{nginx.directories.http.servers}}{{domains[application_id]}}.conf"
dest: "{{nginx.directories.http.servers}}{{domain}}.conf"
notify: restart nginx

View File

@@ -3,11 +3,13 @@
include_role:
name: docker-central-database
- name: "include create-domains.yml"
- name: "include create-domains.yml for peertube"
include_tasks: create-domains.yml
loop: "{{ [domain] + domains.peertube_alternates }}"
loop: "{{ [domains.peertube] + domains.peertube_alternates }}"
loop_control:
loop_var: domain
vars:
http: "{{ ports.localhost.http[application_id] }}"
- name: "copy docker-compose.yml and env file"
include_tasks: copy-docker-compose-and-env.yml

View File

@@ -13,8 +13,6 @@
- name: "include role nginx-https-recieve-certificate for {{domain}}"
include_role:
name: nginx-https-recieve-certificate
vars:
domain: "{{domain}}"
- name: "copy nginx domain configuration to {{configuration_destination}}"
template:

View File

@@ -1,3 +1,3 @@
dependencies:
- docker-matomo
# - docker-matomo Don't activate this otherwise the plays take super long
- nginx

View File

@@ -2,7 +2,7 @@
user:
name: administrator
update_password: on_create
password: "{{ user_administrator_initial_password | password_hash('sha512') }}"
password: "{{ administrator_initial_password | password_hash('sha512') }}"
create_home: yes
generate_ssh_key: yes
ssh_key_type: rsa