Nextcloud success!

This commit is contained in:
Sam A. 2023-12-28 22:39:11 +01:00
parent fa0d70732d
commit aa137ae9e3
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
7 changed files with 14 additions and 5 deletions

View File

@ -5,3 +5,6 @@ apps_base_domain: sapti.me
db_inventory_hostname: sapt-labp-db01
db_host: "{{ hostvars[db_inventory_hostname].internal_ipv4 }}"
proxy_inventory_hostname: sapt-labr-prx01
proxy_host: "{{ hostvars[proxy_inventory_hostname].internal_ipv4 }}"

View File

@ -5,3 +5,6 @@ apps_base_domain: staging.sapti.me
db_inventory_hostname: sapt-labs-db01
db_host: "{{ hostvars[db_inventory_hostname].internal_ipv4 }}"
proxy_inventory_hostname: sapt-labr-prx01
proxy_host: "{{ hostvars[proxy_inventory_hostname].internal_ipv4 }}"

View File

@ -65,4 +65,4 @@ apps_vars:
apps_include: "{{ apps_vars | dict2items | map(attribute='key') | list }}"
apps_backup: "{{ apps_vars | dict2items | selectattr('value.backup', 'true') | map(attribute='key') | list | intersect(apps_include) }}"
apps_proxied: "{{ apps_vars | dict2items | selectattr('value.domain', 'defined') | map(attribute='key') | list | intersect(apps_include) }}"
apps_senders: "{{ apps_vars | dict2items | selectattr('value.sender', 'true') | map(attribute='key') | list | intersect(apps_include) }}"
apps_senders: "{{ apps_vars | dict2items | selectattr('value.sender', 'true') | map(attribute='value.domain') | list }}"

View File

@ -11,8 +11,7 @@
- name: Create subdirectory for Nextcloud data
ansible.builtin.file:
path: "{{ apps_data_root }}/nextcloud/data/app"
owner: root
group: '33'
owner: '33'
mode: u=rwx,g=rx,o=rx
state: directory

View File

@ -26,7 +26,7 @@ services:
SMTP_AUTHTYPE: PLAIN
SMTP_HOST: postfix
SMTP_PORT: 587
TRUSTED_PROXIES: "{{ apps_vars.nginx.docker_ipv4 }}"
TRUSTED_PROXIES: "{{ proxy_host }} {{ apps_vars.nginx.docker_ipv4 }} fd02::/64"
OVERWRITEHOST: {{ apps_vars.nextcloud.domain }}
OVERWRITEPROTOCOL: https
OVERWRITECLIURL: https://{{ apps_vars.nextcloud.domain }}

View File

@ -12,7 +12,9 @@ services:
HOSTNAME: "{{ apps_vars.postfix.hostname }}"
DKIM_AUTOGENERATE: "true"
networks:
- {{ apps_postfix_docker_network }}
{{ apps_postfix_docker_network }}:
aliases:
- postfix
volumes:
- "./data:/etc/opendkim/keys:rw"

View File

@ -2,4 +2,6 @@
# code: language=ansible-jinja
RemoteIPHeader X-Forwarded-For
RemoteIPInternalProxy {{ proxy_host }}
RemoteIPInternalProxy {{ apps_vars.nginx.docker_ipv4 }}
RemoteIPInternalProxy fd02::/64