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