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.
Valentin Lab
405cef2bec
|
11 months ago | |
---|---|---|
.. | ||
hooks | 11 months ago | |
lib | 11 months ago | |
README.org | 11 months ago | |
metadata.yml | 11 months ago |
README.org
Usage
Basic usage
ntfy: options: ## These are default of the charm (different from default of `ntfy`) #auth-default-access: deny-all #enable-signup: false #enable-login: true #enable-reservations: true
Any option from the help of ntfy can be used, to the exception of firebase-key-file
.
To setup firebase
, there are some slight differences you can find here.
Connection with Firebase
I you build your own Android/IOS ntfy app, you can use Firebase Cloud Messaging (FCM) to send notification through official channel. To configure your server to send notification with Firebase you can:
ntfy: options: firebase: ## content of your firebase service key file in yaml type: service_account project_id: myfirebase-project private_key_id: 0ebce...41480 private_key: | -----BEGIN PRIVATE KEY----- MzynkLGbScqN4XAWCU84Q6LLi6MFsnDyrA883Cdkttg1zI62q/BohgIck+897oyb .. ifQT/X7DVZl42p0M1mwwdAS8Ig== -----END PRIVATE KEY----- client_email: firebase-adminsdk-fodhh@ntfy-0k.iam.gserviceaccount.com client_id: "101777552980915316312" auth_uri: https://accounts.google.com/o/oauth2/auth token_uri: https://oauth2.googleapis.com/token auth_provider_x509_cert_url: https://www.googleapis.com/oauth2/v1/certs client_x509_cert_url: https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-fxdhj%40myfirebase-project.iam.gserviceaccount.com
To produce the output from the private service key file you created in
Firebase
you could:
cat myfirebase-project-firebase-adminsdk-fxdhj-6eaewk4a4.json | yq -p json -o yaml
To get more information about how to deploy your own app ntfy's doc about FCM might be helpful.