configpolicy/group_vars/nextcloud.yml

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