diff options
| author | ruki <[email protected]> | 2026-02-09 22:59:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-02-09 22:59:52 +0800 |
| commit | 1cfb93527de725e85fadcd931e5938b7ded6a50e (patch) | |
| tree | ce19f0f476563a1dd559a46d2bb91b7854299c7c | |
| parent | 8d33fc825ba7d93e06bcada9dec24366c557b4ac (diff) | |
improve to generate remote config
| -rw-r--r-- | xmake/modules/private/service/client_config.lua | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/xmake/modules/private/service/client_config.lua b/xmake/modules/private/service/client_config.lua index 2c6baff27..b20e081d6 100644 --- a/xmake/modules/private/service/client_config.lua +++ b/xmake/modules/private/service/client_config.lua @@ -38,17 +38,19 @@ function _generate_configfile() local filepath = configfile() assert(not _g.configs and not os.isfile(filepath)) local token = _get_local_server_token() - print("generating the config file to %s ..", filepath) + print("generating config file to %s ..", filepath) local configs = { send_timeout = -1, recv_timeout = -1, connect_timeout = 10000, remote_build = { - -- without authorization: "127.0.0.1:9691" - -- with user authorization: "[email protected]:9691" - connect = "127.0.0.1:9691", - -- with token authorization - token = token + hosts = { + { + name = "local", + connect = "127.0.0.1:9691", + token = token + } + } }, remote_cache = { connect = "127.0.0.1:9692", |
