Skip to content

Commit

Permalink
feat: enabled web push
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Jun 15, 2024
1 parent dd711be commit 1e7d753
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.github/
.env.example
.gitignore
LICENSE
README.md
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
NTFY_WEB_PUSH_PRIVATE_KEY=
NTFY_WEB_PUSH_PUBLIC_KEY=
NTFY_WEB_PUSH_EMAIL_ADDRESS=
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ services:
dockerfile: Dockerfile
environment:
- TZ=IST
env_file:
- .env
networks:
metaploy-network:
aliases:
Expand Down
4 changes: 3 additions & 1 deletion server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,12 @@ attachment-expiry-duration: "72h"
# - web-push-email-address is the admin email address send to the push provider, e.g. `[email protected]`
# - web-push-startup-queries is an optional list of queries to run on startup`
#
### ENABLED WEB PUSH
## Below variables are provided through envs
# web-push-public-key:
# web-push-private-key:
# web-push-file:
# web-push-email-address:
web-push-file: /var/cache/ntfy/webpush.db
# web-push-startup-queries:

# If enabled, ntfy can perform voice calls via Twilio via the "X-Call" header.
Expand Down

0 comments on commit 1e7d753

Please sign in to comment.