uwsgi icon indicating copy to clipboard operation
uwsgi copied to clipboard

Ssl socket activation

Open steelman opened this issue 4 years ago • 3 comments

If I am not mistaken, it isn't possible at the moment to configure uWSGI to receive sockets from systemd and use them as SSL sockets. These patches (actually the last one) makes uWSGI grab SSL context from uwsgi_socket configured in a config file and apply it to a socket received from systemd (while detaching it from the original structure).

For an SSL configuration to be applied to a socket received from systemd its computed name must match the name configured with https-socket.

WARNING! Although I have tested it for both IPv4 and IPv6 and it works for me, I am not entirely sure this is the right way to do it. Please, review the patches carefully.

steelman avatar Jun 07 '21 18:06 steelman

@xrmx looks good to me, any thoughts ? thanks @steelman

unbit avatar Jun 08 '21 05:06 unbit

I don't exactly understand why the error occurred. Is there anything I need to fix? Can you explain?

steelman avatar Jun 25 '21 07:06 steelman

Ping?

steelman avatar Jul 08 '22 06:07 steelman