Skip to content
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

Add push notification support #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 133 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"toml": "^2.3.6",
"unzipper": "^0.10.5",
"uuid": "^3.3.2",
"web-push": "^3.4.4",
"ws": "^7.1.2"
},
"devDependencies": {
Expand Down
15 changes: 15 additions & 0 deletions src/configProfileTemplate/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,21 @@ public_register = true
# The webchat UI will be automatically downloaded from here
download_url = "https://builds.kiwiirc.com/zips/kiwiirc_master.zip"

# Push Notifications

# VAPID keys will be displayed in the log if not populated
vapid_public_key = ""
vapid_private_key = ""
vapid_subject = "mailto:[email protected]"

# Time in seconds push notifications will be retained by the push service
push_ttl = 3600

notification_title = "You where mentioned in %NetworkName% %BufferName%"
notification_icon = "/static/favicon.png"
notification_ttl = 10000
notification_all_browsers = false

# Extra configuration for the Kiwi web interface. The webchat extension must be loaded
# See https://github.com/kiwiirc/kiwiirc/wiki/Configuration-Options
"startupOptions.nick" = ""
Expand Down
Loading