Files
configpolicy/group_vars/nextcloud.yml
Dustin C. Hatch 57a5f83262 nextcloud: Run an SMTP relay locally
For some reason, Nextcloud seems to have trouble sending mail via the
network-wide relay.  It opens a connection, then just sits there and
never sends anything until it times out.  This happens probably 4 out of
5 times it attempts to send e-mail messages.

Running Postfix locally and directing Nextcloud to send mail through it
and then on to the network-wide relay seems to work much more reliably.
2025-08-23 22:43:45 -05:00

60 lines
1.5 KiB
YAML

nextcloud_server_name: nextcloud.pyrocufflink.net
apache_server_name: '{{ nextcloud_server_name }}'
nextcloud_trusted_proxies:
- 127.0.0.1
- ::1
- '{{ lookup("dig", groups["public-web"][0]) }}'
nextcloud_trusted_domains:
- nextcloud.pyrocufflink.net
- nextcloud.pyrocufflink.blue
- '{{ ansible_fqdn }}'
nextcloud_smtp:
from: nextcloud@pyrocufflink.net
host: 127.0.0.1
port: 25
dnf_automatic_exclude: nextcloud
nextcloud_db_host: postgresql.pyrocufflink.blue;sslcert=/etc/nextcloud/postgresql.cer;sslkey=/etc/nextcloud/postgresql.key;sslrootcert=system;sslmode=verify-full
restic_include:
- /var/lib/nextcloud
restic_exclude:
- /var/lib/nextcloud/data/*/files_trashbin
- /var/lib/nextcloud/.snapshots
promtail_dac_read_search: true
promtail_scrape_configs:
- '{{ promtail_default_scrape.journal }}'
- job_name: nextcloud
static_configs:
- labels:
__path__: /var/lib/nextcloud/data/nextcloud.log*
job: nextcloud
pipeline_stages:
- json:
expressions:
timestamp: time
level: level
- timestamp:
source: timestamp
format: '2006-01-02T15:04:05-07:00'
- labels:
level:
- job_name: nextcloud-updater
static_configs:
- labels:
__path__: /var/lib/nextcloud/data/updater.log
job: nextcloud-updater
pipeline_stages:
- regex:
expression: >-
^(?P<timestamp>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4})
- timestamp:
source: timestamp
format: '2006-01-02T15:04:05-0700'
smtp:
mode: relay
host: mail.pyrocufflink.blue
port: 25