Mantrix with Ansible
Mantrix with Ansible
Section titled “Mantrix with Ansible”Return to Server Guides
Pushing Updates
Section titled “Pushing Updates”Remotely Pushing updates with ssh command
Section titled “Remotely Pushing updates with ssh command”# sync the var config section with localrsync -avz /Users/sacas/Git/Irregularchat2.0/matrix-docker-ansible-deploy root@ssh.alfaren.xyz:/root/Git/1. push ansible setup and startssh root@ssh.alfaren.xyz 'ansible-playbook -i /root/Git/matrix-docker-ansible-deploy/inventory/hosts /root/Git/matrix-docker-ansible-deploy/setup.yml --tags=setup-all,start &'1. ensure-matrix-users-created can be added before start when creating users but user creation should be done with ssoConfiguration
Section titled “Configuration”***## The bare domain name which represents your Matrix identity.## Matrix user ids for your server will be of the form (`@user:<matrix-domain>`).1. 1. Note: this playbook does not touch the server referenced here.## Installation happens on another server ("matrix.<matrix-domain>").1. 1. If you've deployed using the wrong domain, you'll have to run the Uninstalling step,1. because you can't change the Domain after deployment.1. 1. Example value: example.commatrix_domain: irregulars.io
############CUSTOM############matrix_synapse_allow_public_rooms_over_federation: true
matrix_base_data_path: "/datadrive/matrix"devture_systemd_service_manager_up_verification_delay_seconds: 7
matrix_homeserver_admin_contacts: - matrix_id: "@sac:irregulars.io" email_address: sac@irregularchat.com role: admin - email_address: security@irregularchat.com role: security
matrix_ssl_lets_encrypt_support_email: 'matrix@irregularchat.com'
## This is something which is provided to Let's Encrypt when retrieving SSL certificates for domains.1. 1. In case SSL renewal fails at some point, you'll also get an email notification there.1. 1. If you decide to use another method for managing SSL certificates (different than the default Let's Encrypt),1. you won't be required to define this variable (see `docs/configuring-playbook-ssl-certificates.md`).1. 1. Example value: someone@example.comdevture_traefik_config_certificatesResolvers_acme_email: 'matrix@irregularchat.com'
matrix_registration_enabled: truematrix_registration_admin_secret: "secret_here"
matrix_homeserver_generic_secret_key: 'secret_here'devture_postgres_connection_password: 'secret_here'
### Signal Bot ###matrix_mautrix_signal_enabled: truematrix_mautrix_signal_relaybot_enabled: truematrix_mautrix_signal_login_shared_secret: 'secret_here'matrix_mautrix_signal_bridge_permissions: {"@sac:irregulars.io": "admin", "*": "user", "*": "relay"}### Signal Bot ###### SSO Configuration ###1. oidc_providers:1. - idp_id: authentik1. idp_name: authentik1. discover: true1. issuer: "https://sso.irregulars.io/application/o/element-messenger/" # TO BE FILLED: domain and slug1. client_id: "74efbe99d72cb3913b853b6a2b2f9d44b5687a6d" # TO BE FILLED1. client_secret: "111ca129a5d5ddecd621e006aa50287a8b9b9d37af7ab9e9783daa38a4394f3ec30591f4af91baf629a63e5e5ad38527dafe54afaee584676164f7d69ef5dd2f" # TO BE FILLED1. client_auth_method: client_secret_post1. scopes: ["openid", "profile"](server-guides](/server-guides-md))1. authorization_endpoint: "https://sso.irregulars.io/application/o/authorize/"1. token_endpoint: "https://sso.irregulars.io/application/o/token/"1. userinfo_endpoint: "https://sso.irregulars.io/application/o/userinfo/"1. jwks_uri: "https://sso.irregulars.io/application/o/element-messenger/jwks/"1. skip_verification: true1. user_mapping_provider:1. config:1. subject_claim: "id"1. localpart_template: ""1. display_name_template: ""1. email_template: ""1. attribute_requirements:1. - attribute: userGroup1. value: "synapseUsers"### //SSO Configuration ############### //CUSTOM ############## The Matrix homeserver software to install.## See:1. - `roles/custom/matrix-base/defaults/main.yml` for valid options1. - the `docs/configuring-playbook-IMPLEMENTATION_NAME.md` documentation page, if one is available for your implementation choice 1. matrix_homeserver_implementation: synapse#https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/configuring-playbook-dendrite.mdmatrix_homeserver_implementation: dendrite
## A secret used as a base, for generating various other secrets.## By default, the playbook manages its own Traefik (https://doc.traefik.io/traefik/) reverse-proxy server.## It will retrieve SSL certificates for you on-demand and forward requests to all other components.## For alternatives, see `docs/configuring-playbook-own-webserver.md`.matrix_playbook_reverse_proxy_type: playbook-managed-traefik