mirror of
https://github.com/evroon/bracket.git
synced 2026-05-07 15:37:16 -04:00
Disable user creation while in beta (#222)
This commit is contained in:
@@ -10,6 +10,9 @@ Copy `ci.env` to `prod.env` and fill in the values:
|
||||
- `CORS_ORIGINS` and `CORS_ORIGIN_REGEX`: Specify allowed frontend domain names for CORS (see the [FastAPI docs](https://fastapi.tiangolo.com/tutorial/cors/))
|
||||
- `ADMIN_EMAIL` and `ADMIN_PASSWORD`: The credentials of the admin user, which is created when initializing the database
|
||||
- `SENTRY_DSN`: The [Sentry](https://sentry.io) DSN for monitoring and error tracking
|
||||
- `BASE_URL`: The base url of the API used for SSO
|
||||
- `ALLOW_USER_REGISTRATION`: Can be used to disallow user registration in the web app, currently used for production while bracket is still in beta
|
||||
- `ALLOW_INSECURE_HTTP_SSO`: Should not be used in production. Allows use of INSECURE requests for SSO auth.
|
||||
|
||||
## Example configuration file
|
||||
This is an example of how the config file should look like:
|
||||
@@ -21,4 +24,6 @@ CORS_ORIGIN_REGEX='https://.*\.vercel\.app'
|
||||
ADMIN_EMAIL='admin@example.com'
|
||||
ADMIN_PASSWORD='some unused password'
|
||||
SENTRY_DSN='my sentry dsn'
|
||||
ALLOW_USER_REGISTRATION=false
|
||||
ALLOW_INSECURE_HTTP_SSO=false
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user