|
917 | 917 | "SECRET_KEY_LENGTH": 32, |
918 | 918 | } |
919 | 919 |
|
| 920 | +# Controls the app domain used in emails (currently invites and change requests). |
| 921 | +# If set, domain stored with `django.contrib.sites` is disregarded. |
| 922 | +DOMAIN_OVERRIDE = env.str("FLAGSMITH_DOMAIN", "") |
| 923 | +# Used when no Django site is specified. |
| 924 | +DEFAULT_DOMAIN = "app.flagsmith.com" |
| 925 | + |
920 | 926 | USER_CREATE_PERMISSIONS = env.list( |
921 | 927 | "USER_CREATE_PERMISSIONS", default=["custom_auth.permissions.IsSignupAllowed"] |
922 | 928 | ) |
|
928 | 934 | "PASSWORD_RESET_CONFIRM_URL": "password-reset/confirm/{uid}/{token}", |
929 | 935 | # if True user required to click activation link in email to activate account |
930 | 936 | "SEND_ACTIVATION_EMAIL": env.bool("ENABLE_EMAIL_ACTIVATION", default=False), |
| 937 | + "EMAIL_FRONTEND_DOMAIN": DOMAIN_OVERRIDE, |
931 | 938 | # FE uri to redirect user to from activation email |
932 | 939 | "ACTIVATION_URL": "activate/{uid}/{token}", |
933 | 940 | # register or activation endpoint will send confirmation email to user |
|
1294 | 1301 | # Used for serializing and deserializing GenericForeignKey(used in metadata) using the natural key of the object |
1295 | 1302 | SERIALIZATION_MODULES = {"json": "import_export.json_serializers_with_metadata_support"} |
1296 | 1303 |
|
1297 | | -# Controls the app domain used in emails (currently invites and change requests). |
1298 | | -# If set, domain stored with `django.contrib.sites` is disregarded. |
1299 | | -DOMAIN_OVERRIDE = env.str("FLAGSMITH_DOMAIN", "") |
1300 | | -# Used when no Django site is specified. |
1301 | | -DEFAULT_DOMAIN = "app.flagsmith.com" |
1302 | | - |
1303 | 1304 | # Define the cooldown duration, in seconds, for password reset emails |
1304 | 1305 | PASSWORD_RESET_EMAIL_COOLDOWN = env.int("PASSWORD_RESET_EMAIL_COOLDOWN", 60 * 60 * 24) |
1305 | 1306 | # Define the threshold, in minutes, for updating the last login timestamp |
|
0 commit comments