Add separate api/web/file server configuration (backward support included).

OS environment override with:  TRAINS_API_HOST / TRAINS_WEB_HOST / TRAINS_FILES_HOST
This commit is contained in:
allegroai
2019-07-20 22:01:27 +03:00
parent 9880581554
commit 51cc50e239
6 changed files with 175 additions and 49 deletions

View File

@@ -1,7 +1,13 @@
# TRAINS SDK configuration file
api {
# Notice: 'host' is the api server (default port 8008), not the web server.
host: http://localhost:8008
# web_server on port 8080
web_server: "http://localhost:8080"
# Notice: 'api_server' is the api server (default port 8008), not the web server.
api_server: "http://localhost:8008"
# file server onport 8081
files_server: "http://localhost:8081"
# Credentials are generated in the webapp, http://localhost:8080/admin
credentials {"access_key": "EGRTCO8JMSIGI6S39GTP43NFWXDQOW", "secret_key": "x!XTov_G-#vspE*Y(h$Anm&DIc5Ou-F)jsl$PdOyj5wG1&E!Z8"}