cloudserve-infrastructure/roles/ntfy/templates/server.yml.j2
Marty Oehme 32b1b13ef4
Add ntfy role
Installs and configures the ntfysh server to enable notifications.
2022-01-23 20:00:47 +01:00

15 lines
1,009 B
Django/Jinja

base-url: "https://{{ server_domain }}"
global_topic_limit: "{{ ntfy_global_topic_limit }}"
visitor_subscription_limit: "{{ ntfy_visitor_subscription_limit }}"
visitor_request_limit_burst: "{{ ntfy_visitor_request_limit_burst }}"
visitor_request_limit_replenish: "{{ ntfy_visitor_request_limit_replenish }}"
cache-file: "/var/cache/ntfy/cache.db"
cache_duration: "{{ ntfy_cache_duration }}"
attachment-cache-dir: "/var/cache/ntfy/attachments"
attachment_total_size_limit: "{{ ntfy_attachment_total_size_limit }}"
attachment_file_size_limit: "{{ ntfy_attachment_file_size_limit }}"
attachment_expiry_duration: "{{ ntfy_attachment_expiry_duration }}"
visitor_attachment_total_size_limit: "{{ ntfy_visitor_attachment_total_size_limit }}"
visitor_attachment_daily_bandwidth_limit: "{{ ntfy_visitor_attachment_daily_bandwidth_limit }}"
behind-proxy: true # uses 'X-Forwarded-For' Headers for individual visitors
# TODO i believe Caddy does not set the correct X-Forwarded-For header, see whoami container to check