From be3fd95697e025d2def470d98735d5de20e39d60 Mon Sep 17 00:00:00 2001 From: proffapt Date: Sat, 15 Jun 2024 16:07:37 +0530 Subject: [PATCH] feat: enabled web push --- .dockerignore | 5 +++++ .env.example | 4 ++++ .gitignore | 1 + docker-compose.yml | 2 ++ server.yml | 4 +++- 5 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .dockerignore create mode 100644 .env.example create mode 100644 .gitignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..87f2e5b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +.github/ +.env.example +.gitignore +LICENSE +README.md \ No newline at end of file diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..20596b4 --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +NTFY_WEB_PUSH_PRIVATE_KEY= +NTFY_WEB_PUSH_PUBLIC_KEY= +NTFY_WEB_PUSH_EMAIL_ADDRESS= +NTFY_WEB_PUSH_FILE= diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2eea525 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 4227fc3..686406a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,8 @@ services: dockerfile: Dockerfile environment: - TZ=IST + env_file: + - .env networks: metaploy-network: aliases: diff --git a/server.yml b/server.yml index 3e25696..8e86007 100644 --- a/server.yml +++ b/server.yml @@ -159,10 +159,12 @@ attachment-expiry-duration: "72h" # - web-push-email-address is the admin email address send to the push provider, e.g. `sysadmin@example.com` # - web-push-startup-queries is an optional list of queries to run on startup` # +########### Web Push is ENABLED ############ # web-push-public-key: # web-push-private-key: -# web-push-file: # web-push-email-address: +# web-push-file: +#### enabled via environment variables ##### # web-push-startup-queries: # If enabled, ntfy can perform voice calls via Twilio via the "X-Call" header.