ShiftHackZ / Stable-Diffusion-Android

Stable Diffusion AI client app for Android
https://sdai.moroz.cc
GNU Affero General Public License v3.0
738 stars 73 forks source link

'Cloudflare Zero Trust' ability to connect to remote server utilizing Cloudflare Zero Trust.. #102

Open bpawnzZ opened 1 year ago

bpawnzZ commented 1 year ago

As it said in the title I would love to be able to use this to manage SD remotely. I have my remote access setup using Cloudflare Tunnel with Cloudflare Zero Trust utilizing Oath authorization with GitHub login emails. Sounds complicated but it is incredibly streamlined. Simply if I am logged into my GitHub account, or other accounts I have allowed access to. I can easily navigate to specified domain as if I was connecting locally. However only those with specific emails connected to GitHub can do so. I love the security and how you hardly even notice it.

It would be amazing to somehow be able to use this client remotely. Are there any plans to allow what I said above to be possible?? Or potentially some way to make it work now??? Thank you

xedis commented 11 months ago

My advice? Run cloudflared on your host box, with that you can setup the tunnel. Then so long as your phone is authenticated to your cloudflare zero trust, you should be able to resolve the instance, just make sure to setup the port rule or change your listen port to 443.

I'll double check this in a few hours but it should do the trick.

Also I recommend using SDNext on ur host as we have added additional connection logging to the webui ... https://github.com/vladmandic/automatic