Setting up a secret

Tonic Structural stores and encrypts your database credentials.

To use your own encryption key, during initial installation, add the environment setting TONIC_SECRET to both the Structural worker and Structural web server containers.

TONIC_SECRET must have the same value in both containers. It can be any string.

TONIC_SECRET is encrypted using AES. By default, the encryption uses a 128-bit key. It can also support a 256-bit key.

Last updated