Commit 2336c322 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added api base path to serving static docs.

parent 733fec99
......@@ -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)
......
......@@ -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')
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment