CasaOS icon indicating copy to clipboard operation
CasaOS copied to clipboard

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

Open nodew opened this issue 2 years ago • 8 comments

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.

nodew avatar Nov 05 '23 13:11 nodew

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

leesonaa avatar Nov 05 '23 23:11 leesonaa

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.

nodew avatar Nov 06 '23 00:11 nodew

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

ETWang1991 avatar Nov 06 '23 01:11 ETWang1991

@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.

nodew avatar Nov 06 '23 03:11 nodew

@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 avatar Mar 29 '24 15:03 FernandoWahl

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.

FernandoWahl avatar Mar 29 '24 15:03 FernandoWahl