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

Serving Front-end Webapp through Beast has not been successful #2976

Open
vtharmalingam opened this issue Jan 23, 2025 · 1 comment
Open

Comments

@vtharmalingam
Copy link

I have a Beast WebSocket Server running over SSL, with the server.crt, server.key, and dh2048.pem files properly loaded. I've also placed my React front-end app in a subdirectory and served it via HTTPS.

On my local machine and even from some remote machines, I was able to get the front-end loading successfully, and that connects to WSS.

However, on other remote machines, the front-end fails to load and keeps trying indefinitely. I attempted increasing the HTTPS socket timeout and other tweaks, but nothing helped.

As a workaround, I had to serve the front-end using Apache on the remote machine, and that establishes the WSS connection to the beast server.

This setup introduces unnecessary complexity—requiring two SSL certificates and increasing maintenance overhead.

What could I be missing? Why doesn’t the front-end consistently load across all remote machines?

Any advice would be greatly appreciated! If needed, I can share the relevant code for review if that will help. I believe this could be a common issue, and you may have some tips for me to fix this. Thank you so much, in advance!

Regards,
Tharma

@vtharmalingam vtharmalingam changed the title Serving Front-end Webapp through Beast has not successful Serving Front-end Webapp through Beast has not been successful Jan 23, 2025
@ashtum
Copy link
Collaborator

ashtum commented Jan 24, 2025

What type of error does ssl::stream::async_handshake return for clients that fail to connect?
Please provide more information, such as which step the connection reaches and what errors occur.

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