-
-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow configurable web push expiry duration #1212
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -876,7 +876,9 @@ a database to keep track of the browser's subscriptions, and an admin email addr | |
- `web-push-private-key` is the generated VAPID private key, e.g. AA2BB1234567890abcdefzxcvbnm1234567890 | ||
- `web-push-file` is a database file to keep track of browser subscription endpoints, e.g. `/var/cache/ntfy/webpush.db` | ||
- `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` | ||
- `web-push-startup-queries` is an optional list of queries to run on startup` | ||
- `web-push-expiry-warning-duration` defines the duration for which unused subscriptions are sent a warning (default is `7d`) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: "defines the duration after which ..." There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated |
||
- `web-push-expiry-duration` defines the duration for which unused subscriptions will expire (default is `9d`) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated |
||
|
||
Limitations: | ||
|
||
|
@@ -904,7 +906,7 @@ web-push-email-address: [email protected] | |
``` | ||
|
||
The `web-push-file` is used to store the push subscriptions. Unused subscriptions will send out a warning after 7 days, | ||
and will automatically expire after 9 days (not configurable). If the gateway returns an error (e.g. 410 Gone when a user has unsubscribed), | ||
and will automatically expire after 9 days (default). If the gateway returns an error (e.g. 410 Gone when a user has unsubscribed), | ||
subscriptions are also removed automatically. | ||
|
||
The web app refreshes subscriptions on start and regularly on an interval, but this file should be persisted across restarts. If the subscription | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this "usage" description and the next one got switched
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed