Comments (6)
See the APPRISE_CONFIG_LOCK
documented in the README.md file.
This pairs with the apprise:// which i think gets you what you want?
from apprise-api.
Hello, Chris
Thank you for the response!
APPRISE_CONFIG_LOCK looks like what I need to protect configuration. I will check documentation more detailed.
But, it's not clear for me how to use apprise://.
I need just one instance of apprise and ability to communicate with it through REST API.
For example a micro-service use curl
to notify a team about something like:
curl -X POST -d "body=notify team, tag=devops, token=xxxx" https://my_apprise_url/{key}
Where token
is a secret used to access {key} of the team.
Could you please also clarify the way to combine tags with each other?
For example:
devops=slack://{tokenA}...
dev=slack://{tokenA}
pm=slack://{tokenA}
tech=[devops,dev] # tech should include devops and dev tags.
from apprise-api.
The config would look like:
tech,devops=slack://{tokenA}...
tech,dev=slack://{tokenA}
pm=slack://{tokenA}
The above tags your urls so that you can access them individually, or group the first 2 as tech
You're Apprise configuration needs to just point to your API;
# just notify the tech group:
apprise -vvv -t title -b body "apprise://your.apprise.api/token?tags=tech"
You could also make a ~./apprise
file (on your local pc) that looks like:
# local configuration
dev=apprise://your.apprise.api/token?tags=dev
tech=apprise://your.apprise.api/token?tags=tech
dev=apprise://your.apprise.api/token?tags=dev
pm=apprise://your.apprise.api/token?tags=pm
Then you can just run:
apprise -vvv -t title -b body -g tech
It's a bit counter intuitive, but prevents exposing your credentials to users.
If you don't use the APPRISE_CONFIG_LOCK
, you're local Apprise configuration file (~./apprise
) just becomes:
# local configuration
include http://your.apprise.api:8000/get/token
from apprise-api.
Chris, thank very much!
In your example I need two instances of apprise: an API server and apprise client on the sender's side, correct?
# just notify the tech group:
apprise -vvv -t title -b body "apprise://your.apprise.api/token?tags=tech"
I consider Apprise like a notification gateway. I need just one Apprise API server, which is accessible for clients through REST API. And looking for a solution to protect endpoints URLs by some secret token.
On the side of Apprise API server I have several preconfigured keys according to each team:
apprise.api:8000/teamDevops
apprise.api:8000/teamSecurity
The goal is protect team's endpoint from each other. Team Devops has access to key 'apprise.api:8000/teamDevops', but does not have access to apprise.api:8000/teamSecurity
.
Is there a way to protect teams endpoints without additional wrappers like Nginx?
from apprise-api.
Just focus on the api part of my response and i think it will achieve what you want 🙂🚀
from apprise-api.
Will try, thank you for your work and responses!
from apprise-api.
Related Issues (20)
- Apprise & IPv6 HOT 14
- Tags AND, OR logic not working as expected HOT 8
- Question about inconsistency in the tag(s) parameter for apprise-api HOT 2
- Prometheus endpoint HOT 2
- Groups are not working with Apprise-API HOT 1
- docker compose error HOT 2
- Add Prometheus Metrics HOT 1
- Does the api support ntfy file attachments? HOT 10
- django.request: Failed Dependency Explanation HOT 4
- receiving outside web hook messages HOT 19
- Signal using curl: django.request: Failed Dependency: /notify/apprise HOT 6
- Errors in the CURL examples in configuration overview HOT 2
- Telegram: Is there a way for it to ignore all tags? HOT 13
- Webinterface Notification panel report "Bad Attachment" when none as been chosed HOT 5
- Bad Request: /notify/apprise in Docker HOT 2
- A typo in apprise-api website HOT 4
- Refactor General Display of Loaded URLs HOT 11
- Bad attachment warning for attachments > 10 MB HOT 8
- Can I customize or map [title] and [body] these two request parameters? HOT 8
- How do I mount configuration for topics properly in persistent way, so it just works? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apprise-api.