···11+MIT License
22+33+Copyright (c) 2024 Matt Foxx
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
+59-1
README.md
···11-# deploy-ntfy-alerter11+# Deploy a Gotify [Alerter](https://komo.do/docs/resources#alerter)
22+33+Part of the [*Komodo Hub* collection.](https://github.com/komodo-hub/komodo-hub)
44+55+Deploys an [Alerter](https://komo.do/docs/resources#alerter) that pushes to [ntfy](https://ntfy.sh/). Docker image built from [foxxmd/komodo-utilities](https://github.com/FoxxMD/komodo-utilities).
66+77+## Requirements
88+99+* A running ntfy instance ([installation docs](https://docs.ntfy.sh/))
1010+* A topic to push to
1111+1212+## Komodo Resource TOML
1313+1414+```toml
1515+[[stack]]
1616+name = "ntfy-alerter"
1717+[stack.config]
1818+repo = "foxxmd/deploy-ntfy-alerter"
1919+file_paths = [
2020+ "compose.yaml",
2121+]
2222+environment = """
2323+ ## Required
2424+2525+ # Your Gotify instance URL
2626+ NTFY_URL = https://ntfy.example.com
2727+2828+ # App Token created for Komodo
2929+ NTFY_TOPIC = MyTopic
3030+3131+ ## Optional
3232+3333+ # Auth
3434+ #NTFY_USER=[[NTFY_USER]]
3535+ #NTFY_PASSWORD=[[NTFY_PASSWORD]]
3636+3737+ # Set the Gotify Priority level based on Komodo alert severity
3838+ #NTFY_OK_PRIORITY=3
3939+ #NTFY_WARNING_PRIORITY=5
4040+ #NTFY_CRITICAL_PRIORITY=8
4141+"""
4242+4343+[[variable]]
4444+name = "NTFY_USER"
4545+value = "MyUser"
4646+is_secret = true
4747+4848+[[variable]]
4949+name = "NTFY_PASSWORD"
5050+value = "MyPass"
5151+is_secret = true
5252+5353+[[alerter]]
5454+name = "ntfy"
5555+[alerter.config]
5656+enabled = true
5757+endpoint.type = "Custom"
5858+endpoint.params.url = "http://ntfy-alerter-ip:7000"
5959+```