Commit d95aacfd authored by James Kirk's avatar James Kirk
Browse files

feat: adding url-prefix as field to swagger for nginx

parent 6cf9aedf
Pipeline #108211 failed with stages
in 31 seconds
......@@ -12,6 +12,9 @@ import os
app = Flask(__name__)
url_prefix = os.getenv(
"URL_PREFIX", ""
)
swagger_config = {
"openapi": "3.0.2",
......@@ -28,6 +31,7 @@ swagger_config = {
"route": "/soar_protocol.json",
}
],
"url_prefix": url_prefix,
"paths": {},
"components": {
"schemas": {
......@@ -78,7 +82,7 @@ swag = Swagger(app, config=swagger_config, merge=True)
flask_host = os.getenv(
"FLASK_HOST", "localhost"
) # Sets to whatever MQ_HOST is, or defaults to localhost
) # Sets to whatever FLASK_HOST is, or defaults to localhost
if __name__ == "__main__":
app.run(debug=False, host=flask_host)
Markdown is supported
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