refactor: use MULTI_TENANT env variable, model concern instead of controller (#accepting_signups?)

This commit is contained in:
Adam Haris
2025-12-10 15:14:22 +01:00
parent 64ca9e551e
commit eb8655dc8e
11 changed files with 23 additions and 26 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ We've added comments to that file to highlight what each setting needs to be, bu
- `proxy/ssl` and `proxy/host`: Kamal can set up SSL certificates for you automatically. To enable that, set the hostname again as `host`. If you don't want SSL for some reason, you can set `ssl: false` to turn it off.
- `env/clear/MAILER_FROM_ADDRESS`: This is the email address that Fizzy will send emails from. It should usually be an address from the same domain where you're running Fizzy.
- `env/clear/SMTP_ADDRESS`: The address of an SMTP server that you can send email through. You can use a 3rd-party service for this, like Sendgrid or Postmark, in which case their documentation will tell you what to use for this.
- `env/clear/SINGLE_TENANT`: Set to `true` to enable single-tenant mode (disable multi-account signups).
- `env/clear/MULTI_TENANT`: Set to `false` to enable single-tenant mode (disable multi-account signups).
Fizzy also requires a few environment variables to be set up, some of which contain secrets.