mirror of
https://github.com/Findus23/RPGnotes.git
synced 2024-09-19 15:43:45 +02:00
use domain from secrets
This commit is contained in:
parent
adcf1021fe
commit
e83f0c8a0d
1 changed files with 4 additions and 3 deletions
|
@ -22,8 +22,9 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|||
# Quick-start development settings - unsuitable for production
|
||||
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
|
||||
|
||||
DOMAIN_WITH_DOT = "." + DOMAIN
|
||||
|
||||
ALLOWED_HOSTS = [".rpgnotes.lw1.at"]
|
||||
ALLOWED_HOSTS = [DOMAIN_WITH_DOT]
|
||||
|
||||
# Application definition
|
||||
|
||||
|
@ -71,7 +72,7 @@ TENANT_MODEL = "campaigns.Campaign"
|
|||
|
||||
TENANT_DOMAIN_MODEL = "campaigns.Domain"
|
||||
|
||||
TENANT_USERS_DOMAIN = "test.localhost"
|
||||
TENANT_USERS_DOMAIN = DOMAIN
|
||||
|
||||
AUTH_USER_MODEL = 'users.TenantUser'
|
||||
|
||||
|
@ -80,7 +81,7 @@ AUTHENTICATION_BACKENDS = (
|
|||
'tenant_users.permissions.backend.UserBackend',
|
||||
)
|
||||
|
||||
SESSION_COOKIE_DOMAIN = '.test.localhost'
|
||||
SESSION_COOKIE_DOMAIN = DOMAIN_WITH_DOT
|
||||
|
||||
DEFAULT_FILE_STORAGE = "django_tenants.files.storage.TenantFileSystemStorage"
|
||||
|
||||
|
|
Loading…
Reference in a new issue