IceWhaleTech / CasaOS

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
https://casaos.io
Apache License 2.0
26.32k stars 1.44k forks source link

Support customizing the host of the app's Web UI for external visiting. #1489

Open nodew opened 1 year ago

nodew commented 1 year ago

Is your feature request related to a problem? Please describe. I added customize hosts for the casa web UI, like admin.casa.com and use reverse proxy for other apps with different host names, like x.app.com. So when I click on the app icon when I visit from external, it will give a false jump link, like admin.casa.com:8080 while I expect it to be x.app.com.

Describe the solution you'd like In the setting panel, add additional config for the WebUI, for example, the Internal address and External address.

leesonaa commented 1 year ago

协议头 域名 端口都是可以改的呀。你填正确的反向代理的域名+port不就可以了嘛。

nodew commented 1 year ago

I expect it to use the internal IP address when I visit apps with the internal address 192.168.xxx.xxx, and use the custom domain when I visit from the external.

ETWang1991 commented 1 year ago

I registered a domain name with cloudflare, and then I can access CasaOS through it. Are you in a similar situation? @nodew

nodew commented 1 year ago

@ETWang1991 Exposing the CasaOS directly into internet is not a good practice, which will expose all the installed apps to public network and increase the security attack risk. Alternatively, with a reverse proxy, you can choose what you want to access in public network and leave the other apps in local network only.

FernandoWahl commented 8 months ago

@ETWang1991 Exposing the CasaOS directly into internet is not a good practice, which will expose all the installed apps to public network and increase the security attack risk. Alternatively, with a reverse proxy, you can choose what you want to access in public network and leave the other apps in local network only.

I understand the concern, but users who make these types of configurations tend to have enough knowledge to take the necessary precautions. Cloudflare itself limits the gateways when using tunnels. Allowing reverse proxy link makes The home more accessible even within the local network. No need to use an app and local routes.

FernandoWahl commented 8 months ago

I think the proposed functionality, which I would also like to have, is a field where if the link exists, when clicking on the app instead of opening the WebUi, the link would open.

milon commented 5 days ago

@nodew, Did you find a solution?

leesonaa commented 5 days ago

@nodew,你找到解决办法了吗? you can try sun-panel https://github.com/hslr-s/sun-panel