Add ntfy service
This commit is contained in:
parent
068a8e2cd7
commit
05014af744
3 changed files with 69 additions and 0 deletions
|
@ -40,6 +40,8 @@
|
|||
tags: [influxdb, sensors, monitoring]
|
||||
- role: jellyfin
|
||||
tags: [jellyfin, media]
|
||||
- role: ntfy
|
||||
tags: [ntfy, notifications, push]
|
||||
- role: reitanlage_oranienburg
|
||||
tags: [reitanlage-oranienburg, website]
|
||||
- role: synapse
|
||||
|
|
12
roles/ntfy/tasks/main.yml
Normal file
12
roles/ntfy/tasks/main.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
- name: Set common facts
|
||||
ansible.builtin.import_tasks: tasks/set-default-facts.yml
|
||||
|
||||
- name: Deploy {{ svc.name }}
|
||||
vars:
|
||||
svc: "{{ ntfy_svc }}"
|
||||
compose: "{{ ntfy_compose }}"
|
||||
env: "{{ ntfy_env }}"
|
||||
block:
|
||||
- name: Import tasks to deploy common service
|
||||
ansible.builtin.import_tasks: tasks/deploy-common-service.yml
|
55
roles/ntfy/vars/main.yml
Normal file
55
roles/ntfy/vars/main.yml
Normal file
|
@ -0,0 +1,55 @@
|
|||
---
|
||||
ntfy_svc:
|
||||
name: ntfy
|
||||
domain: push.serguzim.me
|
||||
port: 80
|
||||
|
||||
ntfy_env:
|
||||
TZ: "{{ timezone }}"
|
||||
|
||||
NTFY_BASE_URL: "https://{{ ntfy_svc.domain }}"
|
||||
|
||||
NTFY_CACHE_FILE: /var/cache/ntfy/cache.db
|
||||
NTFY_CACHE_DURATION: "12h"
|
||||
|
||||
NTFY_BEHIND_PROXY: true
|
||||
|
||||
NTFY_AUTH_FILE: /var/lib/ntfy/user.db
|
||||
NTFY_AUTH_DEFAULT_ACCESS: "deny-all"
|
||||
|
||||
NTFY_ATTACHMENT_CACHE_DIR: "/var/cache/ntfy/attachments"
|
||||
NTFY_ATTACHMENT_TOTAL_SIZE_LIMIT: "5G"
|
||||
NTFY_ATTACHMENT_FILE_SIZE_LIMIT: "15M"
|
||||
NTFY_ATTACHMENT_EXPIRY_DURATION: "3h"
|
||||
|
||||
NTFY_KEEPALIVE_INTERVAL: "45s"
|
||||
NTFY_MANAGER_INTERVAL: "60m"
|
||||
|
||||
NTFY_ENABLE_SIGNUP: false
|
||||
NTFY_ENABLE_LOGIN: true
|
||||
NTFY_ENABLE_RESERVATIONS: true
|
||||
|
||||
NTFY_GLOBAL_TOPIC_LIMIT: 15000
|
||||
|
||||
NTFY_VISITOR_SUBSCRIPTION_LIMIT: 30
|
||||
NTFY_VISITOR_REQUEST_LIMIT_BURST: 60
|
||||
NTFY_VISITOR_REQUEST_LIMIT_REPLENISH: "5s"
|
||||
NTFY_VISITOR_ATTACHMENT_TOTAL_SIZE_LIMIT: "100M"
|
||||
NTFY_VISITOR_ATTACHMENT_DAILY_BANDWIDTH_LIMIT: "500M"
|
||||
|
||||
NTFY_ENABLE_METRICS: true
|
||||
|
||||
ntfy_compose:
|
||||
watchtower: true
|
||||
image: binwiederhier/ntfy
|
||||
volumes:
|
||||
- cache:/var/cache/ntfy
|
||||
- data:/var/lib/ntfy
|
||||
file:
|
||||
services:
|
||||
app:
|
||||
command:
|
||||
- serve
|
||||
volumes:
|
||||
cache:
|
||||
data:
|
Reference in a new issue