Skip to content

Commit

Permalink
fix settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sadnub committed Sep 16, 2024
1 parent 0081474 commit 48fedef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ SCRIPTS_DIR = '/community-scripts'
ADMIN_URL = 'admin/'
ALLOWED_HOSTS = ['${API_HOST}', 'https://${APP_HOST}', '*']
ALLOWED_HOSTS = ['${API_HOST}', '${APP_HOST}', '*']
CORS_ORIGIN_WHITELIST = ['https://${API_HOST}', 'https://${APP_HOST}']
CORS_ALLOW_CREDENTIALS = True
Expand Down
9 changes: 5 additions & 4 deletions api/tacticalrmm/tacticalrmm/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,16 +159,18 @@
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.staticfiles",
"django.contrib.messages",
"channels",
"rest_framework",
"rest_framework.authtoken",
"knox",
"corsheaders",
"accounts",
"allauth",
"allauth.account",
"allauth.headless",
"allauth.socialaccount",
"allauth.socialaccount.providers.openid_connect",
"accounts",
"allauth.headless",
"apiv3",
"clients",
"agents",
Expand Down Expand Up @@ -237,6 +239,7 @@
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"tacticalrmm.middleware.AuditMiddleware",
"allauth.account.middleware.AccountMiddleware",
]
Expand All @@ -254,10 +257,8 @@
MIDDLEWARE.insert(0, "silk.middleware.SilkyMiddleware")

if ADMIN_ENABLED:
MIDDLEWARE += ("django.contrib.messages.middleware.MessageMiddleware",)
INSTALLED_APPS += (
"django.contrib.admin",
"django.contrib.messages",
)

if DEMO:
Expand Down

0 comments on commit 48fedef

Please sign in to comment.