ControlProxy/README.md
2023-11-20 15:38:39 +08:00

19 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 初始化配置说明
1. clone之后使用`git submodule update --init `初始化子仓库。
# 测试环境搭建说明
测试环境中有一个bdtest/Repositorytcp://127.0.0.1:21035),和一个标识解析系统(tcp://127.0.0.1:21041)
## Repo测试
进行Repo测试时需要先在`http://127.0.0.1:21030/DOIP/GlobalRouter/assets/#/Suffix/suffixManage`中登录,
key填` { "publicKey": "04180354fdb6507f8ab98ccfbe165ce11da74ba733f81af86ad6d32216b32cf4f797c559d50ceeefbf4c760c3483840471c67471b90acdffb388cd7d496d9a1610",
"privateKey": "1d4196947f59532db6f8f4055e58474a48db8f30b476ae3edc66406464521b3b"}`由于该repo需要支持从本地的客户端发起调用
因此Address建议填`tcp://127.0.0.1:port`。注意IP与Registry填写的IP的不同。
添加一个`Repository2`其中address填写的port范围建议在18034-18039之内。
## Registry测试
进行Registry测试时需要先在`http://127.0.0.1:21030/DOIP/GlobalRouter/assets/#/Suffix/suffixManage` 之中
创建一个`Registry2`的标识。
key填` { "publicKey": "04180354fdb6507f8ab98ccfbe165ce11da74ba733f81af86ad6d32216b32cf4f797c559d50ceeefbf4c760c3483840471c67471b90acdffb388cd7d496d9a1610",
"privateKey": "1d4196947f59532db6f8f4055e58474a48db8f30b476ae3edc66406464521b3b"}`
由于Registry2需要支持从docker的repo去调用DOIP.publish因此address填写`tcp://host.docker.internal:port`port的范围
建议18034-18039之内。