Nextcloud success!
This commit is contained in:
parent
fa0d70732d
commit
aa137ae9e3
|
@ -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 }}"
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -2,4 +2,6 @@
|
|||
# code: language=ansible-jinja
|
||||
|
||||
RemoteIPHeader X-Forwarded-For
|
||||
RemoteIPInternalProxy {{ proxy_host }}
|
||||
RemoteIPInternalProxy {{ apps_vars.nginx.docker_ipv4 }}
|
||||
RemoteIPInternalProxy fd02::/64
|
||||
|
|
Loading…
Reference in a new issue