remove the need for as/hs secret

master
histausse 2 years ago
parent f3eb3315a7
commit 73ca281aee
Signed by: histausse
GPG Key ID: 67486F107F62E9E9

@ -15,8 +15,6 @@ ansible_managed: str, msg indicating a file managed by ansible
matrix_server_name: the matrix server name
matrix_bridge_facebook_postgre_user_pwd: **SECRET** pwd for connecting to the postgre db
matrix_bridge_facebook_integration_manager_shared_secret: **SECRET** pwd for mautrix-manager. TODO: remove it
matrix_bridge_facebook_as_token: **SECRET** token generated automatically by the bridge (should be handle better at some point...)
matrix_bridge_facebook_hs_token: **SECRET** token generated automatically by the bridge (should be handle better at some point...)
matrix_bridge_facebook_allowed_external_user: list of external users allow to use the bridge
matrix_bridge_facebook_admins: list of admins
```

@ -5,5 +5,4 @@
- Add link to postgres role
- Move registration files to a registration folder
- Use local bot avatar
- Better management of `matrix_bridge_facebook_as_token` and `matrix_bridge_facebook_hs_token`
- Why [animated-styckers] and not [all]?

@ -58,8 +58,8 @@
facebook_config: "{{ encoded_facebook_config.content | b64decode | from_yaml }}"
- name: extract tokens
set_fact:
matrix_bridge_facebook_as_token: "{{ facebook_config.msg.appservice.as_token }}"
matrix_bridge_facebook_hs_token: "{{ facebook_config.msg.appservice.as_token }}"
matrix_bridge_facebook_as_token: "{{ facebook_config.appservice.as_token }}"
matrix_bridge_facebook_hs_token: "{{ facebook_config.appservice.as_token }}"
- name: print config
debug:
msg: "{{ matrix_bridge_facebook_as_token }}, {{ matrix_bridge_facebook_hs_token }}"

@ -76,8 +76,8 @@ appservice:
ephemeral_events: false
# Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
as_token: {{ matrix_bridge_facebook_as_token }}
hs_token: {{ matrix_bridge_facebook_hs_token }}
as_token: "{{ matrix_bridge_facebook_as_token | default('This value is generated when generating the registration') }}"
hs_token: "{{ matrix_bridge_facebook_hs_token | default('This value is generated when generating the registration') }}"
# Prometheus telemetry config. Requires prometheus-client to be installed.
metrics:

Loading…
Cancel
Save