1

I am working with python buildout and want do deploy a diazo wsgi. So far, I managed to do so, but I want to make the app listen on a socket file, not an Ip:Port.

Is this possible with paste.httpserver or is there an alternative package to serve that provides just a socket.

moestly
  • 1,681
  • 15
  • 19

1 Answers1

0

Indeed, it is possible with waitress

First bin/pip install waitress, then review your proxy.ini and edit the server:main section, to use waitress instead of paste.httpserver

[server:main]
use = egg:waitress#main
unix_socket = var/run/diazo.sock

Voila. Paster is now serving HTTP on a unix socket.

moestly
  • 1,681
  • 15
  • 19