fix index

This commit is contained in:
anon 2025-06-07 16:14:06 +02:00
parent 85347f700f
commit 0bf4a52a76
2 changed files with 25 additions and 26 deletions

View file

@ -7,10 +7,9 @@ tags:
- Core Tutorial
---
# The case for alerting
# Anonymous Alerting System (via SimpleX)
As you know, [monitoring](../anonymous_server_monitoring/index.md) is important when running any kind of operations, especially so
for clandestine ones.
As you know, [monitoring](../anonymous_server_monitoring/index.md) is important when running any kind of operations, especially so for clandestine ones.
## Alert Types
@ -241,6 +240,7 @@ Run your client in server mode:
This command will:
- create two databases that your client uses for reconnecting to groups and interacting with the simpleX Network
- make sure that simplex routes all traffic through Tor (thanks to the -x argument)
- set this client display name (what you will see in your groups when receiving alerts)
- open a websocket port that the alerter will use on 127.0.0.1:1337
@ -502,9 +502,9 @@ And here's the alert:
To turn the simplex-chat and the alerter into systemd services, you only need to create two files:
## /etc/systemd/system/simplex-chat.service
```text
vim /etc/systemd/system/simplex-chat.service
cat /etc/systemd/system/simplex-chat.service
```sh
sudo vim /etc/systemd/system/simplex-chat.service
sudo cat /etc/systemd/system/simplex-chat.service
```
[Unit]
@ -517,28 +517,26 @@ To turn the simplex-chat and the alerter into systemd services, you only need to
## /etc/systemd/system/alerter.service
```text
vim /etc/systemd/system/alerter.service
cat /etc/systemd/system/xxx
```sh
sudo vim /etc/systemd/system/alerter.service
sudo cat /etc/systemd/system/alerter.service
[Unit]
Requires=simplex-chat.service
[Service]
ExecStart=docker run --rm simplex-alerter -c /etc/alerter-config.yaml -e 127.0.0.1:1337
[Install]
WantedBy=simplex-chat.service
```
[Unit]
Requires=simplex-chat.service
[Service]
ExecStart=docker run --rm simplex-alerter -c /etc/alerter-config.yaml -e 127.0.0.1:1337
[Install]
WantedBy=simplex-chat.service
## Enable the services
Now enable the services
sudo systemctl daemon-reload
sudo systemctl enable --now simplex-chat.service
sudo systemctl enable --now alerter.service
Now enable the service:
```sh
sudo systemctl daemon-reload
sudo systemctl enable --now simplex-chat.service
sudo systemctl enable --now alerter.service
```
# Conclusion
We now have an easy way to set multiple alerts to different groups based on our monitoring system, furthermore those alerts will be sent over tor through a privacy-preserving messaging system.