aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/settings.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-08-04 12:49:40 +0300
committerFrederick Muriuki Muriithi2023-08-04 12:49:40 +0300
commitbd99071174bfa80d179dd32673200f51000b86b5 (patch)
treeab15db002983ddebf10ea6e632b2d0b05b3455d9 /gn_auth/settings.py
parent8b7c598407a5fea9a3d78473e72df87606998cd4 (diff)
downloadgn-auth-bd99071174bfa80d179dd32673200f51000b86b5.tar.gz
Initialise the application and update some module imports
Diffstat (limited to 'gn_auth/settings.py')
-rw-r--r--gn_auth/settings.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/gn_auth/settings.py b/gn_auth/settings.py
new file mode 100644
index 0000000..71ffd5d
--- /dev/null
+++ b/gn_auth/settings.py
@@ -0,0 +1,18 @@
+"""Default application settings."""
+import os
+
+# LOGLEVEL
+LOGLEVEL = "WARNING"
+
+# Flask settings
+SECRET_KEY = ""
+
+# Database settings
+SQL_URI = "mysql://webqtlout:webqtlout@localhost/db_webqtl"
+AUTH_DB = f"{os.environ.get('HOME')}/genenetwork/gn3_files/db/auth.db"
+AUTH_MIGRATIONS = "migrations/auth"
+
+# OAuth2 settings
+OAUTH2_SCOPE = (
+ "profile", "group", "role", "resource", "user", "masquerade",
+ "introspect")