Przeglądaj źródła

Use native OpenSSL module to generate `passkey.pem`

pull/87/head
Plailect 7 lat temu
rodzic
commit
0dac5ea508
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: F8A415C5EA602A41
2 zmienionych plików z 7 dodań i 6 usunięć
  1. +2
    -0
      docs/configuring-playbook-bridge-appservice-irc.md
  2. +5
    -6
      roles/matrix-synapse/tasks/ext/appservice-irc/setup.yml

+ 2
- 0
docs/configuring-playbook-bridge-appservice-irc.md Wyświetl plik

@@ -4,6 +4,8 @@ The playbook can install and configure [matrix-appservice-irc](https://github.co

See the project's [documentation](https://github.com/TeDomum/matrix-appservice-irc/blob/master/HOWTO.md) to learn what it does and why it might be useful to you.

The Appservice IRC bridge configuration using Ansible will require that you have `python-pyOpenSSL` installed on your local machine.

You'll need to use the following playbook configuration:

```yaml


+ 5
- 6
roles/matrix-synapse/tasks/ext/appservice-irc/setup.yml Wyświetl plik

@@ -22,13 +22,12 @@
group: "{{ matrix_user_username }}"
when: "matrix_appservice_irc_enabled"

- stat:
path: "{{ matrix_appservice_irc_base_path }}/passkey.pem"
register: irc_passkey_file

- name: Generate matrix-appservice-irc passkey if it doesn't exist
shell: /usr/bin/openssl genpkey -out {{ matrix_appservice_irc_base_path }}/passkey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:2048
when: "matrix_appservice_irc_enabled and irc_passkey_file.stat.exists == False"
openssl_privatekey:
path: "{{ matrix_appservice_irc_base_path }}/passkey.pem"
size: 2048
force: false
when: "matrix_appservice_irc_enabled"

- name: Ensure matrix-appservice-irc.service installed
template:


Ładowanie…
Anuluj
Zapisz