2021-05-21 11:43:04 +02:00
# Configuring Hydrogen (optional)
2023-12-15 11:18:18 +01:00
This playbook can install the [Hydrogen ](https://github.com/element-hq/hydrogen-web ) Matrix web client for you.
2021-05-21 11:43:04 +02:00
Hydrogen is a lightweight web client that supports mobile and legacy web browsers.
Hydrogen can be installed alongside or instead of Element.
2024-10-12 20:18:59 +02:00
## DNS
2021-05-21 11:43:04 +02:00
2024-10-17 15:17:56 +02:00
You need to add a `hydrogen.example.com` DNS record so that Hydrogen can be accessed.
By default Hydrogen will use https://hydrogen.example.com so you will need to create an CNAME record
2021-05-21 13:40:01 +02:00
for `hydrogen` . See [Configuring DNS ](configuring-dns.md ).
2021-05-21 11:43:04 +02:00
2024-10-17 15:17:56 +02:00
If you would like to use a different domain, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file (changing it to use your preferred domain):
2021-05-21 11:43:04 +02:00
```yaml
2024-10-15 11:33:19 +02:00
matrix_server_fqn_hydrogen: "helium.{{ matrix_domain }}"
2021-05-21 11:43:04 +02:00
```
2024-10-12 20:18:59 +02:00
## Adjusting the playbook configuration
2024-10-17 15:17:56 +02:00
To enable Hydrogen, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file:
2024-10-12 20:18:59 +02:00
```yaml
matrix_client_hydrogen_enabled: true
```
## Installing
After configuring the playbook, run the [installation ](installing.md ) command: `just install-all` or `just setup-all`