zero01101 / openOutpaint

local offline javascript and html canvas outpainting gizmo for stable diffusion webUI API 🐠
MIT License
500 stars 43 forks source link

remove absolute path for reverse proxy #226

Closed webbigdata-jp closed 1 year ago

webbigdata-jp commented 1 year ago

Hi, thanks for the great extension. Sorry, I accidentally closed the PR earlier.

If you want to run WebUI on public cloud (aws, gcp, etc) with https, there is a restriction that you can not directly bind to the external address from inside the machine, so I think it is common to do as follows. ・Bind the WebUI to the local address (127.0.0.1) ・Bind nginx to an external address and operate as a reverse proxy to transfer to WebUI

However, since there is a part written with an absolute path, javascript seems to get stuck trying to access the user's local machine (127.0.0.1). If there is a reason why it must be an absolute path, I will give up, but I would be happy if you could merge it.

Thanks.

webbigdata-jp commented 1 year ago

Sorry, I'm closing this simple solution because I understand that it will interfere with others.