-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to share the same web server port with user's application for transport module? #1565
Comments
目前使用了sentinel的应用端是通过独立的HTTP端口(默认8719)和dashboard交互的,因为应用端可能没有使用spring/springboot,也可能不是web应用。如果使用了springboot web,想仅使用一个端口,目前是不支持的。 是否需要共用一个web端口以及如何支持欢迎一起讨论哈~ |
If it really matters i have another idea that,
Follow the sentinel way: Introduce what you want and you have. |
@jasonjoo2010 Yeah! i used like your idea : |
I have a idea, I create a new module named sentinel-transport-spring-mvc, implements tow interfaces of spring-mvc(SentinelApiHandlerAdapter-HandlerAdapter SentinelApiHandlerMapping-HandlerMapping), mapping the api of dashboard want to visit to SentinelApiHandler(CommandHandler). In this way, we no need update the existing module. |
@shenbaoyong Good idea! It really solved the problem. |
springboot项目集成使用sentinel后部署到docker容器里.但是docker对外只提供一个端口给web使用.请教一下.在不对外提供端口的情况下(默认8719),dashboard和使用sentinel的客户端怎么保持心跳?
The text was updated successfully, but these errors were encountered: