John-Mark Gurney 71c417a97a | 1 year ago | |
---|---|---|
src | 1 year ago | |
static | 1 year ago | |
.gitignore | 1 year ago | |
LICENSE.txt | 1 year ago | |
Makefile | 1 year ago | |
README.md | 1 year ago | |
S1_vapid.py | 1 year ago | |
pushnotify.sh | 1 year ago |
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.
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/