From 83d4909c8b5650337022968c2918390276e9d35e Mon Sep 17 00:00:00 2001
From: Vermaas <vermaas@astron.nl>
Date: Tue, 16 Jan 2024 11:38:52 +0100
Subject: [PATCH] added connection to atdb database on sdc-dev

---
 atdb/atdb/settings/sdc-dev.py | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 atdb/atdb/settings/sdc-dev.py

diff --git a/atdb/atdb/settings/sdc-dev.py b/atdb/atdb/settings/sdc-dev.py
new file mode 100644
index 00000000..033ef322
--- /dev/null
+++ b/atdb/atdb/settings/sdc-dev.py
@@ -0,0 +1,28 @@
+from atdb.settings.base import *
+import os
+
+# SECURITY WARNING: don't run with debug turned on in production!
+DEV = True
+DEBUG = True
+
+ALLOWED_HOSTS = ["*"]
+CORS_ORIGIN_ALLOW_ALL = True
+
+# needs to be inside the ASTRON network or connected through VPN
+DATABASES = {
+    'default': {
+         'ENGINE': 'django.db.backends.postgresql_psycopg2',
+         'USER': 'dbadmin',
+         'PASSWORD': 'dbadmin123',
+         'NAME': 'atdbldv',
+         'HOST': 'sdc-dev.astron.nl',
+         'PORT': '10000',
+    },
+}
+
+# Password validation
+# https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators
+
+AUTH_PASSWORD_VALIDATORS = []
+
+LOGIN_REDIRECT_URL = "http://localhost:8000/atdb"
-- 
GitLab