-
Notifications
You must be signed in to change notification settings - Fork 27.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: deploy webui on a base_url/subpath instead of /
#9546
Comments
This used to work when I first installed SD but now with the new version it doesn't work, not sure what version changed the support |
I met the same problem, have you solved this? |
What would one need to do to make this change? |
Hey @shuaiyy @marsplant @AaronWebster I found a way of doing it. I found this PR that includes the change #9865 so In order to implement those changes you only have to switch to the dev branch and then add this to your webui-user.sh
|
Yep, |
it not work on the current master . |
commit 20ae71f (HEAD -> master, origin/master, origin/HEAD)
|
@Dewey-Ding What does not work? What did you try? |
use this cmd " --subpath aip --skip-torch-cuda-test --no-half " on current master commit 20ae71f (HEAD -> master, origin/master, origin/HEAD) http://127.0.0.1:7860/aip it not work. |
the previous --subpath i implemented was just a workaround as gradio didnt have proper support, i have updated it after they added root_path in 3.30. you can checkout #11478 |
In recently gradio version , if you need access gradio from nginx proxy and your gradio not configures a base-url path, it will raise a theme.css 404 not find , or an /info 404 not find. --subpath args no work in SD v1.30, fix:
|
I tried this same method, but the browser shows {"detail":"Not Found"}. |
a fix was merged, now you can do |
When I clone Master and run it with the following conditions, the result is still the same:
|
proxy_pass http://xxxxxxxxxx:7860; can you explain this line, if you are running webui on the same machine, you should have a proxy to localhost:7860. If not then please double check if you can access the address directly first. |
It is running on a remote GPU server and "xxxxxxxxxxxx" is marked with an ip address. It has been hidden for security reasons. If no sub-path is attached, it is accessed normally. |
Thank you. I can't seem to do it even with "proxy_pass http://xxxxxxxxxx:7860/stablediffusion-webui/". |
I would try and setup the reverse proxy on the GPU server and see if its posible to route back to whatever server you are using. |
Adding proxy rewrites in NGINX and launching/starting with the On your NGINX conf:
Startup:
|
I have resolved this issue! Thank you to everyone! |
|
Has anyone solved this issue? I am trying to serve this on Kubernetes cluster behind a Virtual Service under a subpath. When I change the root_path of the Gradio application with --subpath option I get the error below My Gradio version is 3.41.2 If solved, can anyone point me in the right direction? |
By upgrading fastapi to version 0.110.3, I resolved this issue.(gradio==4.40.0) |
Is there an existing issue for this?
What would your feature do ?
I want to deloy webui on an exist host with subpath, like
http://xxx.com/webui/
I tried nginx to for service route,not work.
Proposed workflow
--base-url /webui
http://host:port/webui/
Additional information
No response
The text was updated successfully, but these errors were encountered: