Skip to content
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

想问一下0.12版本客户端访问问题 #251

Open
Mwy161005 opened this issue Jun 1, 2023 · 1 comment
Open

想问一下0.12版本客户端访问问题 #251

Mwy161005 opened this issue Jun 1, 2023 · 1 comment

Comments

@Mwy161005
Copy link

@serverendpoint(value = "/call/{role}/{no}/{deviceId}",
workerLoopGroupThreads = "28",
optionSoBacklog = "1024",
childOptionSoKeepalive = "true",
allIdleTimeSeconds = "60",
port = "6655",
sslKeyStoreType = "${server.ssl.key-store-type}",
sslKeyStore = "${server.ssl.key-store}",
sslKeyStorePassword = "${server.ssl.key-store-password}",
sslKeyPassword = "${server.ssl.key-password}"
)
我的端点配置如上,然后我发现用localhost和127.0.0.1,不管是ws还是wss都能连接上,我用ip就无法访问;而且我部署到服务器上后,发现不管用ws还是wss都不能访问了

@aazainn
Copy link

aazainn commented Jul 6, 2023

我认为有2种解决方案:
1.放服务器上时,host设置0.0.0.0
2.用nginx反向代理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants