-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Extension for SSL / HTTPS / Cerbot encryption #6
Comments
This project does not implement SSL, so the method of adding it is entirely your choice. My suggestion is that you look for tutorials on how to add SSL/Let' s Encrypt to HAProxy, since that is what this project uses, but if you prefer to put nginx in front of HAProxy and handle the SSL there that should work too. |
Hey Miguel, However I also had this problem with my monolith app: I get socketio handshake problems when using https. I never have these problems in http. I guess it has something to do with sticky sessions, socketio and https Did you ever have socketio handshake problems using https? The error is described in more detail here. However only nginx solutions are given. It is actually not a socketio error but a Websocket error. Thus I guess the websocket is not correcty setup. Some details: This is my haproxy.cfg file:
|
To find out more about the 400 error you have to enable logging in the Socket.IO server. |
In the mikroflack_socketio->boot.sh package I changed:
to
I also changed: 1.4.6 to 2.0.0 --> //cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.0/socket.io.min.js The mflogs gives me (when connecting via https)
Howver if I connect to my site using http/ www mflogs gives me this (no error at all)
The debug error log does not contain much:
|
I was referring to the logging in the Socket.IO server. Add |
Sorry, but something isn't right there. You don't seem to be running the socketio service, which is the one that should be writing those logs. |
I changed now in the socketio -> app.py this line: # adding message_queue=message_queue, logger=True, engineio_logger=True
socketio = SocketIO(app, message_queue=message_queue, logger=True, engineio_logger=True) after that my docker container always restarts.... I guess the line is wrong.... I deleted engineio_logger in this line and now the socketio starts but I guess I do not have all logs now: ./mflogs shows now
|
The logging line looks fine to me. If you are getting a Python error then the log should have a stack trace. |
I saw this error here: and could solve the error using:
Thanks for your help you can close this issue now :) |
Hey Miguel,
I just came across this great project and would like to test it a bit and then use it in production.
In order to use it in production I "upgraded all the requirements.txt files" and it worked like a charm even under ubuntu 20.04 focal fossa. I did not use any vagrant or virtual machine - just a clean ubuntu.
Next step was to run the site into a https ssl website using certbot and letsencrypt.
In order to achieve this I just did the following:
inside mfvars:
-> or do I need https://idgaming.de or does this always have to be the 192.... localhost?
For me these changes did not work yet ...
I would be pleased if you could give me some hints.
I hope I got it right but I guess I do not need any ngnix?
Cause I have a current monolith running fine using ngnix and gunicorn.
I have more questions and would be happy to discuss with you (also some bugs I fixed which I noticed occuring in ubuntu 20.04).
Just contact me at [email protected]
The text was updated successfully, but these errors were encountered: