Running on Unix domain socket #3898
gioboske
started this conversation in
Ideas / Feature Requests
Replies: 1 comment
-
You are right, it would be great to have this this feature. As far as I know, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When running in native mode, it could be useful to run
NiceGUI
server over Unix domain socket, instead oflocalhost
. For example, to support access control using file permissions in a multi-users system.uvicorn
already allows to bind to a Unix domain socket (UDS), so I guess it is a matter of makepywebview
communicating with a server running over UDS. Something similar to send requests withcurl
by using--unix-socket <path>
option.Some time ago I've opened a similar request on
pywebview
repository (r0x0r/pywebview#1393), but it is not planned to implement this feature, at least in the near feature.As far as I know, there is no standard url scheme for UDS. In fact, similar feature request for Chromium lead to a WONTFIX also because of the lack of a standard url scheme (just as reference, here the feature request for Chromium and a similar discussion on Bugzilla).
Maybe, someone (more skilled than me) could propose a clever way to proxy all
NiceGUI
/pywebview
connections to the Unix socket.Beta Was this translation helpful? Give feedback.
All reactions