ExchangeUnion / xud-docker

Streamlined setup of xud and all dependencies via docker 🐳
https://docs.exchangeunion.com
GNU Affero General Public License v3.0
5 stars 5 forks source link

feat(proxy): add ui dashboard app to proxy container #769

Closed krrprr closed 3 years ago

krrprr commented 3 years ago

This PR adds the functionality of serving the XUD Explorer Dashboard as a web application, independent of the the native Electron app, from the proxy container. Closes https://github.com/ExchangeUnion/xud-ui/issues/94

How to test: in xud-docker dir

git checkout feat/proxy-ui

edit images/proxy/src.py by replacing "master" with "feat/ui". The frontend branch can remain as "main".

./tools/build proxy:latest
./tools/build utils:latest
bash setup.sh -b feat/proxy-ui --proxy.disabled=false --dev --use-local-images proxy

Open http://localhost:{port} in the browser (the port is the usual proxy port 8889, 18889, 28889 depending on the network)

raladev commented 3 years ago

works fine, but we need valid certificate, otherwise browser will throw alert Screenshot from 2020-11-09 17-20-57

kilrau commented 3 years ago

https://letsencrypt.org/getting-started/

erkarl commented 3 years ago

https://letsencrypt.org/getting-started/

https://letsencrypt.org/docs/certificates-for-localhost/

reliveyy commented 3 years ago

https://letsencrypt.org/docs/certificates-for-localhost/

@erkarl I have read the guide. You still need to trust your own CA when you try to use TLS with localhost. I think we could leave this certs issue in another PR. And this mkcert command will make it easy on Linux/macOS/Windows if you don't want to do multiple mouse clicks.