Просмотр исходного кода

Replace domain.tld with example.com

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
pull/3628/head
Suguru Hirahara 1 год назад
Родитель
Сommit
288a711af6
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: E4F9743DAB4B7B75
3 измененных файлов: 6 добавлений и 6 удалений
  1. +1
    -1
      docs/configuring-playbook-bot-go-neb.md
  2. +4
    -4
      docs/configuring-well-known.md
  3. +1
    -1
      roles/custom/matrix-bot-go-neb/defaults/main.yml

+ 1
- 1
docs/configuring-playbook-bot-go-neb.md Просмотреть файл

@@ -207,7 +207,7 @@ matrix_bot_go_neb_services:
webhook_url: "http://localhost/services/hooks/YWxlcnRtYW5hZ2VyX3NlcnZpY2U"
# Each room will get the notification with the alert rendered with the given template
rooms:
"!someroomid:domain.tld":
"!someroomid:example.com":
text_template: "{% raw %}{{range .Alerts -}} [{{ .Status }}] {{index .Labels \"alertname\" }}: {{index .Annotations \"description\"}} {{ end -}}{% endraw %}"
html_template: "{% raw %}{{range .Alerts -}} {{ $severity := index .Labels \"severity\" }} {{ if eq .Status \"firing\" }} {{ if eq $severity \"critical\"}} <font color='red'><b>[FIRING - CRITICAL]</b></font> {{ else if eq $severity \"warning\"}} <font color='orange'><b>[FIRING - WARNING]</b></font> {{ else }} <b>[FIRING - {{ $severity }}]</b> {{ end }} {{ else }} <font color='green'><b>[RESOLVED]</b></font> {{ end }} {{ index .Labels \"alertname\"}} : {{ index .Annotations \"description\"}} <a href=\"{{ .GeneratorURL }}\">source</a><br/>{{end -}}{% endraw %}"
msg_type: "m.text" # Must be either `m.text` or `m.notice`


+ 4
- 4
docs/configuring-well-known.md Просмотреть файл

@@ -50,15 +50,15 @@ matrix_static_files_file_matrix_support_enabled: true
# Homeserver admin contacts as per MSC 1929 https://github.com/matrix-org/matrix-spec-proposals/pull/1929
matrix_static_files_file_matrix_support_property_m_contacts:
- matrix_id: "@admin1:{{ matrix_domain }}"
email_address: admin@domain.tld
email_address: admin@example.com
role: m.role.admin
- matrix_id: "@admin2:{{ matrix_domain }}"
email_address: admin2@domain.tld
email_address: admin2@example.com
role: m.role.admin
- email_address: security@domain.tld
- email_address: security@example.com
role: m.role.security

matrix_static_files_file_matrix_support_property_m_support_page: "https://example.domain.tld/support"
matrix_static_files_file_matrix_support_property_m_support_page: "https://example.example.com/support"
```

To learn how to set up `/.well-known/matrix/support` for the base domain, read the Installing section below.


+ 1
- 1
roles/custom/matrix-bot-go-neb/defaults/main.yml Просмотреть файл

@@ -321,7 +321,7 @@ matrix_bot_go_neb_services: []
# webhook_url: "http://localhost/services/hooks/YWxlcnRtYW5hZ2VyX3NlcnZpY2U"
# # Each room will get the notification with the alert rendered with the given template
# rooms:
# "!someroomid:domain.tld":
# "!someroomid:example.com":
# text_template: "{% raw %}{{range .Alerts -}} [{{ .Status }}] {{index .Labels \"alertname\"}}: {{index .Annotations \"description\"}} {{ end -}}{% endraw %}"
# html_template: "{% raw %}{{range .Alerts -}} {{ $severity := index .Labels \"severity\"}} {{ if eq .Status \"firing\"}} {{ if eq $severity \"critical\"}} <font color='red'><b>[FIRING - CRITICAL]</b></font> {{ else if eq $severity \"warning\"}} <font color='orange'><b>[FIRING - WARNING]</b></font> {{ else }} <b>[FIRING - {{ $severity }}]</b> {{ end }} {{ else }} <font color='green'><b>[RESOLVED]</b></font> {{ end }} {{ index .Labels \"alertname\"}} : {{ index .Annotations \"description\"}} <a href=\"{{ .GeneratorURL }}\">source</a><br/>{{end -}}{% endraw %}"
# msg_type: "m.text" # Must be either `m.text` or `m.notice`


Загрузка…
Отмена
Сохранить