lovasoa / SQLpage

Fast SQL-only data application builder. Automatically build a UI on top of SQL queries.
https://sql.datapage.app
MIT License
1.56k stars 89 forks source link

Support for listening on UNIX sockets #323

Closed vlasky closed 4 months ago

vlasky commented 4 months ago

This specifies a path to a UNIX socket file to listen on instead of the TCP port.

If specified, SQLPage will accept HTTP connections only on this socket and not on any TCP port. This option is mutually exclusive with the listen_on and port options.

Useful when running SQLpage behind a proxy server like Nginx, as the overhead for communication using Unix Domain Sockets is less than when using the TCP stack.

lovasoa commented 4 months ago

Great! Could you please also update our nginx.sql which explains how to setup SQLPage behind nginx ?

vlasky commented 4 months ago

There are some other enhancements I want to make to this code so I will do that too.

lovasoa commented 4 months ago

It's merged, thank you @vlasky !