Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nopaque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
3a23fb5d
Commit
3a23fb5d
authored
3 years ago
by
Patrick Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
Add new config variables
parent
b43ec144
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.env.tpl
+8
-0
8 additions, 0 deletions
.env.tpl
config.py
+8
-4
8 additions, 4 deletions
config.py
with
16 additions
and
4 deletions
.env.tpl
+
8
−
0
View file @
3a23fb5d
...
...
@@ -44,6 +44,10 @@ SERVER_NAME=
# HINT: Set to true if you redirect http to https
# SESSION_COOKIE_SECURE=
# CHOOSE ONE: False, True
# DEFAULT: False
TEMPLATES_AUTO_RELOAD=True
################################################################################
# Flask-Login #
...
...
@@ -115,6 +119,10 @@ NOPAQUE_ADMIN=
# DEFAULT: True
# NOPAQUE_DAEMON_ENABLED=
# NOTE: Get these from the nopaque development team
NOPAQUE_DOCKER_REGISTRY_USERNAME=gitlab+deploy-token-30
NOPAQUE_DOCKER_REGISTRY_PASSWORD=ADXPaYYz7U1gxkUP4X4Y
# transport://[userid:password]@hostname[:port]/[virtual_host]
NOPAQUE_SOCKETIO_MESSAGE_QUEUE_URI=
...
...
This diff is collapsed.
Click to expand it.
config.py
+
8
−
4
View file @
3a23fb5d
...
...
@@ -10,16 +10,14 @@ load_dotenv(os.path.join(basedir, '.env'))
class
Config
:
'''
# Docker #
'''
DOCKER_REGISTRY
=
'
gitlab.ub.uni-bielefeld.de:4567
'
DOCKER_IMAGE_PREFIX
=
DOCKER_REGISTRY
+
'
/sfb1288inf/
'
'''
# Flask #
'''
PREFERRED_URL_SCHEME
=
os
.
environ
.
get
(
'
PREFERRED_URL_SCHEME
'
,
'
http
'
)
SECRET_KEY
=
os
.
environ
.
get
(
'
SECRET_KEY
'
,
'
hard to guess string
'
)
SERVER_NAME
=
os
.
environ
.
get
(
'
SERVER_NAME
'
)
SESSION_COOKIE_SECURE
=
\
os
.
environ
.
get
(
'
SESSION_COOKIE_SECURE
'
,
'
false
'
).
lower
()
==
'
true
'
TEMPLATES_AUTO_RELOAD
=
\
os
.
environ
.
get
(
'
TEMPLATES_AUTO_RELOAD
'
,
'
false
'
).
lower
()
==
'
true
'
'''
# Flask-Login #
'''
REMEMBER_COOKIE_HTTPONLY
=
True
...
...
@@ -49,6 +47,12 @@ class Config:
NOPAQUE_DAEMON_ENABLED
=
\
os
.
environ
.
get
(
'
NOPAQUE_DAEMON_ENABLED
'
,
'
true
'
).
lower
()
==
'
true
'
NOPAQUE_DATA_DIR
=
os
.
environ
.
get
(
'
NOPAQUE_DATA_DIR
'
,
'
/mnt/nopaque
'
)
NOPAQUE_DOCKER_REGISTRY
=
'
gitlab.ub.uni-bielefeld.de:4567
'
NOPAQUE_DOCKER_IMAGE_PREFIX
=
f
'
{
NOPAQUE_DOCKER_REGISTRY
}
/sfb1288inf/
'
NOPAQUE_DOCKER_REGISTRY_USERNAME
=
\
os
.
environ
.
get
(
'
NOPAQUE_DOCKER_REGISTRY_USERNAME
'
)
NOPAQUE_DOCKER_REGISTRY_PASSWORD
=
\
os
.
environ
.
get
(
'
NOPAQUE_DOCKER_REGISTRY_PASSWORD
'
)
NOPAQUE_MAIL_SUBJECT_PREFIX
=
'
[nopaque]
'
NOPAQUE_SOCKETIO_MESSAGE_QUEUE_URI
=
\
os
.
environ
.
get
(
'
NOPAQUE_SOCKETIO_MESSAGE_QUEUE_URI
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment