Super simple and small Web Push and Notification service
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
John-Mark Gurney 0a4617e927 write out pem so pywebpush can use it, fixes push to chrome, fix private key write (trailing comma) 10 maanden geleden
src add image, add testing for vapid key, and script to manually push 11 maanden geleden
static add image, add testing for vapid key, and script to manually push 11 maanden geleden
.gitignore inital work to make notifications work.. 11 maanden geleden
LICENSE.txt inital work to make notifications work.. 11 maanden geleden
Makefile write out pem so pywebpush can use it, fixes push to chrome, fix private key write (trailing comma) 10 maanden geleden
README.md inital work to make notifications work.. 11 maanden geleden
S1_vapid.py write out pem so pywebpush can use it, fixes push to chrome, fix private key write (trailing comma) 10 maanden geleden
pushnotify.sh write out pem so pywebpush can use it, fixes push to chrome, fix private key write (trailing comma) 10 maanden geleden

README.md

Web Push Notifications (WPN)

This is designed to be a super simple and small tool to push notifications to your end points.

Installation/running:

git clonse <url>
cd wpn
make run EMAIL=myemail@example.com PORT=<someport>

This code is partly copied from: https://gist.github.com/code-boxx/bc6aed37345ad1783cfb7d230f438120

But put into a repo w/ better install instructions, and turned into a usable bit of code.

Notes

If put behind a reverse proxy, make sure the url contains a trailing slash. If you want the path w/o the slash to work, add a redirect as well.

For Apache:

LoadModule proxy_module libexec/apache22/mod_proxy.so
LoadModule proxy_http_module libexec/apache22/mod_proxy_http.so

ProxyPass "/wpn/" "http://internalwpn.example.com/"
ProxyPassReverse "/wpn/" "http://internalwpn.example.com/"
Redirect permanent /spn https://www.example.com/wpn/