diff --git a/ansible/app-configs/apprise_apprise.yml b/ansible/app-configs/apprise_apprise.yml new file mode 100644 index 00000000..317a8329 --- /dev/null +++ b/ansible/app-configs/apprise_apprise.yml @@ -0,0 +1,3 @@ +urls: + - gotify://gotify/{{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token_cleaned)['secret']['APPRISE_GOTIFY_TOKEN'] }} + - mailtos://{{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token_cleaned)['secret']['POSTAL_SMTP_AUTH_USER'] }}:{{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token_cleaned)['secret']['POSTAL_SMTP_AUTH_PASSWORDz'] }}@trez.wtf25?smtp=postal-smtp&from=noreply@trez.wtf \ No newline at end of file diff --git a/ansible/app-configs/loggifly_config.yml b/ansible/app-configs/loggifly_config.yml new file mode 100644 index 00000000..2a5370ed --- /dev/null +++ b/ansible/app-configs/loggifly_config.yml @@ -0,0 +1,21 @@ +containers: + +global_keywords: + keywords: + - panic + keywords_with_attachment: + - fatal +notifications: + apprise: + url: gotify://gotify/{{ lookup('community.hashi_vault.vault_kv2_get', 'env', engine_mount_point='rinoa-docker', url=vault_addr, token=vault_token_cleaned)['secret']['APPRISE_GOTIFY_TOKEN'] }} # Any Apprise-compatible URL (https://github.com/caronc/apprise/wiki) + +# settings are optional because they all have default values +settings: + log_level: INFO # DEBUG, INFO, WARNING, ERROR + notification_cooldown: 5 # Seconds between alerts for same keyword (per container) + attachment_lines: 20 # Number of Lines to include in log attachments + multi_line_entries: true # Detect multi-line log entries + disable_restart: false # Disable restart when a config change is detected + disable_start_message: false # Suppress startup notification + disable_shutdown_message: false # Suppress shutdown notification + disable_restart_message: false # Suppress config reload notification \ No newline at end of file