add option to handleufw
This commit is contained in:
parent
16eec1af27
commit
276aa4b114
2 changed files with 6 additions and 3 deletions
|
@ -1,12 +1,13 @@
|
|||
---
|
||||
create_cache_file: true
|
||||
auth_file: /var/lib/ntfy/auth.sqlite
|
||||
base_url: notify.koti.site
|
||||
fqdn: ntfy.example.com
|
||||
listen_port: 4880
|
||||
attachment_cache_dir: /var/lib/ntfy/attachments
|
||||
attachment_total_size_limit: "100G"
|
||||
attachment_file_size_limit: "15M"
|
||||
attachment_expiry_duration: "8h"
|
||||
handle_ufw: false
|
||||
|
||||
# Full list in
|
||||
# https://ntfy.sh/docs/config/
|
||||
|
@ -19,8 +20,9 @@ access_rules:
|
|||
topic: '*' # or something like mytopic* or my_topic
|
||||
permission: read-write # or read-only, write-only, deny
|
||||
ntfy_configuration:
|
||||
behind-proxy: false
|
||||
listen-http: ":4880"
|
||||
behind-proxy: true
|
||||
base_url: "http://{{ fqdn }}"
|
||||
listen-http: "127.0.0.1:4880"
|
||||
cache-file: /var/lib/ntfy.sqlite
|
||||
cache-duration: 24h
|
||||
auth-file: "{{ auth_file }}"
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
ufw:
|
||||
rule: allow
|
||||
port: "{{ listen_port }}"
|
||||
when: handle_ufw
|
||||
|
||||
# - name: Configure administrators
|
||||
# shell: "ntfy user add --role=admin {{ item.name }}"
|
||||
|
|
Loading…
Reference in a new issue