Replies: 1 comment
-
Have you seen our nginx subpath example? There we show a configuration on how to reverse proxy using the nicegui/examples/nginx_subpath/nginx.conf Lines 52 to 54 in 8ad98f8 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, NiceGUI mounts everything to
_nicegui/
or some derivative of that (_nicegui_ws/
, etc.)Is it possible (or does it already exist) that NiceGUI supports a parameter in
ui.run
(or elsewhere) for us to choose where these things are mounted?The only relevant discussion that I found regarding this was #1302
The use case for this is when you want to reverse proxy. I have a few webapps that I want to put under the same domain name. They are all running on different ports, and so I want to reverse proxy them to different ports based on the url path.
Think of it like this:
Suppose
https://nicegui.io/
runs on port=8000.Then you'd have a completely different service for the documentation
https://nicegui.io/documentation
running on port=8001. I'd like the button forDocumentation
on port 8000 to put me to port 8001.The problem that I'm running into is that because NiceGUI mounts everything on
_nicegui/
, I am getting these errors:Looking at the sources, I am on the admin/ page, but everything that I need is on

_nicegui
With this, another question is, would this even solve the problem?
Extra:
For the HTTPS server, this is a (relevant) snippet of my conf:
Beta Was this translation helpful? Give feedback.
All reactions