Solved Matomo, Peertube, Nextcloud Bugs

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

View File

@ -10,9 +10,9 @@ primary_domain_sld: "cymais" # Second
primary_domain: "{{primary_domain_sld}}.{{primary_domain_tld}}" # Primary Domain of the server primary_domain: "{{primary_domain_sld}}.{{primary_domain_tld}}" # Primary Domain of the server
# Administrator # Administrator
administrator_username: "administrator" # Username of the administrator administrator_username: "administrator" # Username of the administrator
administrator_email: "{{administrator_username}}@{{primary_domain}}" # Email of the administrator administrator_email: "{{administrator_username}}@{{primary_domain}}" # Email of the administrator
#user_administrator_initial_password: EXAMPLE_PASSWORD_123456 # Example initialisation password needs to be set in inventory file # administrator_initial_password: Null # Example initialisation password needs to be set in inventory file
# Test Email # Test Email
test_email: "test@{{primary_domain}}" test_email: "test@{{primary_domain}}"

View File

@ -109,7 +109,7 @@ defaults_applications:
ldap: ldap:
lam: lam:
version: "latest" version: "latest"
administrator_password: "{{user_administrator_initial_password}}" # CHANGE for security reasons administrator_password: "{{administrator_initial_password}}" # CHANGE for security reasons
openldap: openldap:
version: "latest" version: "latest"
network: network:
@ -226,12 +226,16 @@ defaults_applications:
nextcloud: nextcloud:
version: "production" # @see https://nextcloud.com/blog/nextcloud-release-channels-and-how-to-track-them/ version: "production" # @see https://nextcloud.com/blog/nextcloud-release-channels-and-how-to-track-them/
ldap_enabled: True # Enables LDAP by default, missing ansible setup tasks @todo setup ldap_enabled: True # Enables LDAP by default, missing ansible setup tasks @todo setup
# database_password: Null # Needs to be set in inventory file
oidc: oidc:
enabled: true # Activate OIDC for Nextcloud enabled: true # Activate OIDC for Nextcloud
force_import: False # Forces the import of the LDIF files force_import: False # Forces the import of the LDIF files
database: database:
central_storage: True central_storage: True
credentials:
# database_password: Null # Needs to be set in inventory file
administrator_username: "{{administrator_username}}"
administrator_initial_passwords: "{{administrator_initial_password}}"
## OAuth2 Proxy ## OAuth2 Proxy
oauth2_proxy: oauth2_proxy:

View File

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

View File

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

View File

@ -18,5 +18,11 @@ SMTP_NAME= {{system_email.username}}
SMTP_PASSWORD= {{system_email.password}} SMTP_PASSWORD= {{system_email.password}}
# Email from configuration # Email from configuration
MAIL_FROM_ADDRESS=no-reply MAIL_FROM_ADDRESS= {{system_email.local}}
MAIL_DOMAIN= {{system_email.domain}} 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" application_id: "nextcloud"
database_password: "{{applications.nextcloud.database_password}}" database_password: "{{applications.nextcloud.credentials.database_password}}"
database_type: "mariadb" database_type: "mariadb"
nextcloud_application_container_name: "nextcloud-application" nextcloud_application_container_name: "nextcloud-application"
nextcloud_nginx_container_name: "nextcloud-web" nextcloud_nginx_container_name: "nextcloud-web"

View File

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

View File

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

View File

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

View File

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

View File

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