Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
2336c322
Commit
2336c322
authored
Aug 27, 2018
by
Markus Scheidgen
Browse files
Added api base path to serving static docs.
parent
733fec99
Changes
2
Hide whitespace changes
Inline
Side-by-side
nomad/api.py
View file @
2336c322
...
...
@@ -12,7 +12,10 @@ from nomad.utils import get_logger
base_path
=
config
.
services
.
api_base_path
app
=
Flask
(
__name__
,
static_url_path
=
'/docs'
,
static_folder
=
'../docs/.build/html'
)
app
=
Flask
(
__name__
,
static_url_path
=
'%s/docs'
%
base_path
,
static_folder
=
'../docs/.build/html'
)
CORS
(
app
)
api
=
Api
(
app
)
...
...
nomad/config.py
View file @
2336c322
...
...
@@ -90,5 +90,5 @@ logstash = LogstashConfig(
tcp_port
=
int
(
os
.
environ
.
get
(
'NOMAD_LOGSTASH_TCPPORT'
,
'5000'
))
)
services
=
NomadServicesConfig
(
api_base_path
=
'/nomadxt/api'
)
\ No newline at end of file
api_base_path
=
os
.
environ
.
get
(
'NOMAD_API_BASE_PATH'
,
'/nomadxt/api'
)
)
Write
Preview
Supports
Markdown
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