You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-06 05:42:30 +03:00
36 lines
810 B
Markdown
36 lines
810 B
Markdown
# `config`
|
|
|
|
Helps dealing with the configuration
|
|
|
|
## `config check`
|
|
|
|
Check the validity of configuration files.
|
|
|
|
```console
|
|
$ mas-cli config check --config=config.yaml
|
|
INFO mas_cli::config: Configuration file looks good path=["config.yaml"]
|
|
```
|
|
|
|
## `config dump`
|
|
|
|
Dump the merged configuration tree.
|
|
|
|
```console
|
|
$ mas-cli config dump --config=first.yaml --config=second.yaml
|
|
---
|
|
clients:
|
|
# ...
|
|
```
|
|
|
|
## `config generate`
|
|
|
|
Generate a sample configuration file.
|
|
It generates random signing keys (`.secrets.keys`) and the cookie encryption secret (`.secrets.encryption`).
|
|
|
|
```console
|
|
$ mas-cli config generate > config.yaml
|
|
INFO generate: mas_config::oauth2: Generating keys...
|
|
INFO generate:rsa: mas_config::oauth2: Done generating RSA key
|
|
INFO generate:ecdsa: mas_config::oauth2: Done generating ECDSA key
|
|
```
|