Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
logbook-hfe
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
harshavardhan.c
logbook-hfe
Commits
6e3b40f8
You need to sign in or sign up before continuing.
Commit
6e3b40f8
authored
Mar 09, 2021
by
harshavardhan.c
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Project structure for new maintenance logbook
parent
d345e786
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
conf/dev/application.conf
conf/dev/application.conf
+3
-3
scripts/constants/configurations.py
scripts/constants/configurations.py
+8
-2
No files found.
conf/dev/application.conf
View file @
6e3b40f8
...
@@ -15,9 +15,9 @@ authMechanism=
...
@@ -15,9 +15,9 @@ authMechanism=
mongo_constants_file_path
=
conf
/
mongo_encryption_constants
.
json
mongo_constants_file_path
=
conf
/
mongo_encryption_constants
.
json
[
DB
]
[
DB
]
type
=
postgres
type
=
postgres
ql
host
=
localhost
host
=
localhost
port
=
2717
port
=
5432
username
=
username
=
password
=
password
=
name
=
ilens_logbook
name
=
postgres
\ No newline at end of file
\ No newline at end of file
scripts/constants/configurations.py
View file @
6e3b40f8
...
@@ -6,7 +6,7 @@ from pydantic import BaseSettings
...
@@ -6,7 +6,7 @@ from pydantic import BaseSettings
from
__root__
import
path
from
__root__
import
path
config
=
ConfigParser
()
db_folder_path
=
os
.
path
.
join
(
path
(),
'db'
)
db_folder_path
=
os
.
path
.
join
(
path
(),
'db'
)
try
:
try
:
_config
=
SafeConfigParser
()
_config
=
SafeConfigParser
()
...
@@ -35,7 +35,9 @@ class _Configuration(BaseSettings):
...
@@ -35,7 +35,9 @@ class _Configuration(BaseSettings):
MONGO_AUTH_MECHANISM
:
str
=
_config
.
get
(
"MONGO_DB"
,
"authMechanism"
)
MONGO_AUTH_MECHANISM
:
str
=
_config
.
get
(
"MONGO_DB"
,
"authMechanism"
)
METADATA_DB
:
str
=
_config
.
get
(
"MONGO_DB"
,
"metadata_db"
,
fallback
=
"ilens_configuration"
)
METADATA_DB
:
str
=
_config
.
get
(
"MONGO_DB"
,
"metadata_db"
,
fallback
=
"ilens_configuration"
)
MONGO_ENCRYPTION_FILE_PATH
:
str
=
_config
.
get
(
"MONGO_DB"
,
"mongo_constants_file_path"
,
MONGO_ENCRYPTION_FILE_PATH
:
str
=
_config
.
get
(
"MONGO_DB"
,
"mongo_constants_file_path"
,
fallback
=
"conf/mongo_encryption_constants.json"
)
fallback
=
"conf/mongo_encryption_constants.json"
)
LOG_LEVEL
:
str
=
_config
.
get
(
"LOG"
,
"level"
,
fallback
=
"trace"
)
DB_TYPE
:
str
=
_config
.
get
(
'DB'
,
'type'
,
fallback
=
'postgres'
)
DB_TYPE
:
str
=
_config
.
get
(
'DB'
,
'type'
,
fallback
=
'postgres'
)
DB_HOST
:
str
=
_config
.
get
(
'DB'
,
'host'
,
fallback
=
'localhost'
)
DB_HOST
:
str
=
_config
.
get
(
'DB'
,
'host'
,
fallback
=
'localhost'
)
...
@@ -83,3 +85,7 @@ class SqlDB(object):
...
@@ -83,3 +85,7 @@ class SqlDB(object):
DB_PASSWORD
=
_conf
.
DB_PASSWORD
DB_PASSWORD
=
_conf
.
DB_PASSWORD
DB_NAME
=
_conf
.
DB_NAME
DB_NAME
=
_conf
.
DB_NAME
SQLITE_DEFAULT_DB_PATH
=
_conf
.
SQLITE_DEFAULT_DB_PATH
SQLITE_DEFAULT_DB_PATH
=
_conf
.
SQLITE_DEFAULT_DB_PATH
class
Log
(
object
):
LOG_LEVEL
=
_conf
.
LOG_LEVEL
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment