Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.11 KB

README.md

File metadata and controls

44 lines (33 loc) · 1.11 KB

Vernissage Push

NodeJS Platforms macOS | Linux | Windows

The application is used to send push notifications from the Vernissage platform.

The application serves one endpoint:

POST https://example.url/send

You can send the JSON in format:

{
    "vapidSubject": "",
    "vapidPublicKey": "",
    "vapidPrivateKey": "",
    "endpoint": "",
    "userAgentPublicKey": "",
    "auth": "",
    "title": "",
    "body": "",
    "icon": ""
}

Thus you have to specify Vapid keys and also user public key and secret from the browser. Before using application you have to set up one environment variable, eg:

$ export VPUSH_KEY=YourSuperSecretKey

Each request to the API have to contains header:

Authorization: Basic YourSuperSecretKey

Docker

In production environments, it is best to use a docker image.