Skip to content

Conversation

@josecelano
Copy link
Member

You can overwrite the auth::secret_key in the config file:

[auth]
email_on_signup = "Optional"
min_password_length = 6
max_password_length = 64
secret_key = "MaxVerstappenWC2021"

With an env var: TORRUST_INDEX_AUTH_SECRET_KEY.

That will make it easier to inject secrets when you use docker without modifying the configuration file: config.toml.

You can overwrite the `auth::secret_key` in the config file:

```toml
[auth]
email_on_signup = "Optional"
min_password_length = 6
max_password_length = 64
secret_key = "MaxVerstappenWC2021"
```

With an env var: `TORRUST_INDEX_AUTH_SECRET_KEY`.

That will make it easier to inject secrets when you use docker without
modifying the configuration file: `config.toml`.
@josecelano
Copy link
Member Author

ACK 9d8cf7b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Continuous Integration Workflows and Automation Enhancement / Feature Request Something New

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow to overwrite the auth secret_key = "MaxVerstappenWC2021" with env var

1 participant