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
|
create_cache_file: true
|
||||||
auth_file: /var/lib/ntfy/auth.sqlite
|
auth_file: /var/lib/ntfy/auth.sqlite
|
||||||
base_url: notify.koti.site
|
fqdn: ntfy.example.com
|
||||||
listen_port: 4880
|
listen_port: 4880
|
||||||
attachment_cache_dir: /var/lib/ntfy/attachments
|
attachment_cache_dir: /var/lib/ntfy/attachments
|
||||||
attachment_total_size_limit: "100G"
|
attachment_total_size_limit: "100G"
|
||||||
attachment_file_size_limit: "15M"
|
attachment_file_size_limit: "15M"
|
||||||
attachment_expiry_duration: "8h"
|
attachment_expiry_duration: "8h"
|
||||||
|
handle_ufw: false
|
||||||
|
|
||||||
# Full list in
|
# Full list in
|
||||||
# https://ntfy.sh/docs/config/
|
# https://ntfy.sh/docs/config/
|
||||||
|
@ -19,8 +20,9 @@ access_rules:
|
||||||
topic: '*' # or something like mytopic* or my_topic
|
topic: '*' # or something like mytopic* or my_topic
|
||||||
permission: read-write # or read-only, write-only, deny
|
permission: read-write # or read-only, write-only, deny
|
||||||
ntfy_configuration:
|
ntfy_configuration:
|
||||||
behind-proxy: false
|
behind-proxy: true
|
||||||
listen-http: ":4880"
|
base_url: "http://{{ fqdn }}"
|
||||||
|
listen-http: "127.0.0.1:4880"
|
||||||
cache-file: /var/lib/ntfy.sqlite
|
cache-file: /var/lib/ntfy.sqlite
|
||||||
cache-duration: 24h
|
cache-duration: 24h
|
||||||
auth-file: "{{ auth_file }}"
|
auth-file: "{{ auth_file }}"
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
ufw:
|
ufw:
|
||||||
rule: allow
|
rule: allow
|
||||||
port: "{{ listen_port }}"
|
port: "{{ listen_port }}"
|
||||||
|
when: handle_ufw
|
||||||
|
|
||||||
# - name: Configure administrators
|
# - name: Configure administrators
|
||||||
# shell: "ntfy user add --role=admin {{ item.name }}"
|
# shell: "ntfy user add --role=admin {{ item.name }}"
|
||||||
|
|
Loading…
Reference in a new issue