forked from GithubBackups/healthchecks
Setup instructions for the Matrix integration.
This commit is contained in:
parent
954ca4576b
commit
e294ae0e9b
@ -1140,7 +1140,8 @@ def add_matrix(request):
|
|||||||
|
|
||||||
ctx = {
|
ctx = {
|
||||||
"page": "channels",
|
"page": "channels",
|
||||||
"form": form
|
"form": form,
|
||||||
|
"matrix_user_id": settings.MATRIX_USER_ID
|
||||||
}
|
}
|
||||||
return render(request, "integrations/add_matrix.html", ctx)
|
return render(request, "integrations/add_matrix.html", ctx)
|
||||||
|
|
||||||
|
@ -198,6 +198,7 @@ TRELLO_APP_KEY = os.getenv("TRELLO_APP_KEY")
|
|||||||
|
|
||||||
# Matrix
|
# Matrix
|
||||||
MATRIX_HOMESERVER = os.getenv("MATRIX_HOMESERVER")
|
MATRIX_HOMESERVER = os.getenv("MATRIX_HOMESERVER")
|
||||||
|
MATRIX_USER_ID = os.getenv("MATRIX_USER_ID")
|
||||||
MATRIX_ACCESS_TOKEN = os.getenv("MATRIX_ACCESS_TOKEN")
|
MATRIX_ACCESS_TOKEN = os.getenv("MATRIX_ACCESS_TOKEN")
|
||||||
|
|
||||||
if os.path.exists(os.path.join(BASE_DIR, "hc/local_settings.py")):
|
if os.path.exists(os.path.join(BASE_DIR, "hc/local_settings.py")):
|
||||||
|
BIN
static/img/integrations/setup_matrix_1.png
Normal file
BIN
static/img/integrations/setup_matrix_1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
BIN
static/img/integrations/setup_matrix_2.png
Normal file
BIN
static/img/integrations/setup_matrix_2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
BIN
static/img/integrations/setup_matrix_3.png
Normal file
BIN
static/img/integrations/setup_matrix_3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
@ -14,6 +14,67 @@
|
|||||||
to an appropriate Matrix room.
|
to an appropriate Matrix room.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<h2>Setup Guide</h2>
|
||||||
|
<div class="row ai-step">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<span class="step-no">1</span>
|
||||||
|
<div>
|
||||||
|
<p>
|
||||||
|
Invite <strong>{{ matrix_user_id }}</strong>
|
||||||
|
into your Matrix room.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<strong>Note:</strong> after joining the room,
|
||||||
|
{{ matrix_user_id }} will be
|
||||||
|
able to read its messages.
|
||||||
|
Do not invite to rooms with sensitive content.
|
||||||
|
Consider creating a dedicated room for notifications.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<img
|
||||||
|
class="ai-guide-screenshot"
|
||||||
|
alt="Screenshot"
|
||||||
|
src="{% static 'img/integrations/setup_matrix_1.png' %}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row ai-step">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<span class="step-no">2</span>
|
||||||
|
<p>
|
||||||
|
Look up the room's <strong>alias</strong> or
|
||||||
|
<strong>ID</strong>, and paste it in the form
|
||||||
|
below and save the integration.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<img
|
||||||
|
class="ai-guide-screenshot"
|
||||||
|
alt="Screenshot"
|
||||||
|
src="{% static 'img/integrations/setup_matrix_2.png' %}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row ai-step">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<span class="step-no">3</span>
|
||||||
|
<p>
|
||||||
|
{{ matrix_user_id }} will shortly join your room.
|
||||||
|
After that, you are all set! From now on
|
||||||
|
{% site_name %} will post notifications
|
||||||
|
to your room when checks go down or up.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<img
|
||||||
|
class="ai-guide-screenshot"
|
||||||
|
alt="Screenshot"
|
||||||
|
src="{% static 'img/integrations/setup_matrix_3.png' %}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<h2>Integration Settings</h2>
|
<h2>Integration Settings</h2>
|
||||||
|
|
||||||
<form method="post" class="form-horizontal">
|
<form method="post" class="form-horizontal">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user