Change default unix socket path to something more long-lived.

This commit is contained in:
Brian Lee 2023-07-05 14:38:38 -07:00
parent 869bad8260
commit 1d4d3e445b
4 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,8 @@
# Ansible Role: ntfy # Ansible Role: ntfy
This Ansible Role installs [ntfy](https://github.com/binwiederhier/ntfy). This Ansible Role installs binwiederhier's [ntfy](https://github.com/binwiederhier/ntfy).
Related role: [ansible-role-ntfy-alertmanager](https://github.com/bleetube/ansible-role-ntfy-alertmanager) for xenrox's ntfy-alertmanager integration.
## Requirements ## Requirements

View File

@ -4,5 +4,6 @@ ntfy_listen_http: ":80"
ntfy_cache_file: /var/cache/ntfy/cache.db ntfy_cache_file: /var/cache/ntfy/cache.db
ntfy_behind_proxy: 'true' ntfy_behind_proxy: 'true'
ntfy_attachment_cache_dir: /var/cache/ntfy/attachments ntfy_attachment_cache_dir: /var/cache/ntfy/attachments
ntfy_listen_unix: /run/ntfy/ntfy.sock ntfy_listen_unix: /var/lib/ntfy/ntfy.sock
ntfy_listen_unix_mode: '0666' ntfy_listen_unix_mode: '0666'
ntfy_web_root: /

View File

@ -11,7 +11,7 @@
- name: Ensure directory for ntfy domain sockets - name: Ensure directory for ntfy domain sockets
ansible.builtin.file: ansible.builtin.file:
path: /var/run/ntfy path: /var/lib/ntfy
state: directory state: directory
owner: ntfy owner: ntfy
group: ntfy group: ntfy

View File

@ -185,7 +185,7 @@ attachment-cache-dir: "{{ ntfy_attachment_cache_dir }}"
# the values "app" (maps to "/"), "home" (maps to "/app"), or "disable" (maps to "") to disable # the values "app" (maps to "/"), "home" (maps to "/app"), or "disable" (maps to "") to disable
# the web app entirely. # the web app entirely.
# #
# web-root: / web-root: {{ ntfy_web_root }}
# Various feature flags used to control the web app, and API access, mainly around user and # Various feature flags used to control the web app, and API access, mainly around user and
# account management. # account management.