How to setup SSL?
Hello,
Running the frontend behind SSL causes problems since other services are configured to use non-secure connections. Is there an easy way to set up SSL that I am missing or do I have to terminate SSL on nginx reverse proxy for every service?
Thanks,
I've just finished setting up SSL for all the services. It was quite a hassle, especially with WebSockets. I couldn't figure out where the transactor URL came from and why it was parsing the URL and chopping off everything after the slash.
Anyways, I'll submit a pull request with the compose file, setup script and a guide. Hope, they accept it.
@burakkaraceylan Here's a working version. #19 Let me know if you find any issues.
That is great, thank you!
@MuktadirHassan , @burakkaraceylan I tried it and it is perfect, but for some reason WS connection is not working. After login there is an error in the browser console that ws connection fails. Do you have such an issue? Will be very thankful if you will help.
@MuktadirHassan , @burakkaraceylan I tried it and it is perfect, but for some reason WS connection is not working. After login there is an error in the browser console that ws connection fails. Do you have such an issue? Will be very thankful if you will help.
I did face issues with wss. I solved this by exposing the ports directly via traefik, instead of using PathPrefix. So, it should work by default now.
To debug your issue. Try hitting the wss endpoint with postman. Check if you are able to connect to wss from postman. Also, check the logs for transactor and collaborator.
i use ingress nginx and meet the same question with @MaksymOsovitnii
I couldn't solve the Web Socket problem.
I don't understand about Traefik, my old stack I used from a course teaching Swarm, and I tried to blend the traefik stack that you provide toghether with it.
I did face issues with wss. I solved this by exposing the ports directly via traefik, instead of using PathPrefix. So, it should work by default now.
Idk why but I changed on services.account.enviroment: From: - TRANSACTOR_URL=ws://transactor:3333 To: - TRANSACTOR_URL=wss://huly.digitalinabottle.com:3333
And it worked. Idk if I setted up something wrong in another place, but it seems to solve for me.