services.mastodon.otpSecretFile

Path to file containing the OTP secret. A new OTP secret can be generated by running:

nix build -f '<nixpkgs>' mastodon; cd result; bin/bundle exec rails secret

If this file does not exist, it will be created with a new OTP secret.

Type
string
Default
"/var/lib/mastodon/secrets/otp-secret"
Declared
<nixpkgs/nixos/modules/services/web-apps/mastodon.nix>