mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 02:46:53 +00:00
Support setting fileserver upload folder using an environment variable
This commit is contained in:
parent
8630cc1021
commit
4595117d91
@ -14,6 +14,9 @@ app = Flask(__name__)
|
||||
CORS(app, **config.get("fileserver.cors"))
|
||||
Compress(app)
|
||||
|
||||
if os.environ.get("TRAINS_UPLOAD_FOLDER"):
|
||||
app.config["UPLOAD_FOLDER"] = os.environ.get("TRAINS_UPLOAD_FOLDER")
|
||||
|
||||
|
||||
@app.route("/", methods=["POST"])
|
||||
def upload():
|
||||
|
Loading…
Reference in New Issue
Block a user