Nuonuoi opened a new issue, #8016: URL: https://github.com/apache/incubator-seata/issues/8016
### Check Ahead - [x] I have searched the [issues](https://github.com/seata/seata/issues) of this repository and believe that this is not a duplicate. - [x] I am willing to try to implement this feature myself. ### Why you need it? ## 背景 / Background 在 Docker 中部署 Seata Server 时,通常使用端口映射,例如 `-p 21908:8091`。 希望 Seata 在容器内监听 8091,但向 Nacos 注册的地址为宿主机 IP:21908, 以便客户端通过宿主机端口 21908 连接。 ## 问题 / Problem 目前 `SEATA_PORT` 和 `seata.server.service-port` 会同时影响监听端口和注册端口, 无法做到“监听端口”与“注册端口”分离。 ### How it could be? ## 建议 / Suggestion 支持 `seata.registry.nacos.ip` 和 `seata.registry.nacos.port` 配置, 当配置时优先使用这两个值作为向 Nacos 注册的地址, 否则保持现有行为(使用监听地址和端口)。 ### Other related information ## 使用场景 / Use Case - Docker 端口映射:容器内 8091,宿主机暴露 21908 - 防火墙仅开放 21908,客户端通过 IP:21908 访问 - 需要 Nacos 中注册为 IP:21908,而不是 8091 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
