dec0dOS / zero-ui

ZeroUI - ZeroTier Controller Web UI - is a web user interface for a self-hosted ZeroTier network controller.
GNU General Public License v3.0
951 stars 152 forks source link

bug: The new version does not open 4000 ports ? #176

Closed v808comd closed 1 year ago

v808comd commented 1 year ago

image

aruznieto commented 1 year ago

Are you using the docker-compose.yml file of the repo and using https-proxy? If you comment https-proxy section you must to change

expose:
      - "4000"

to

ports:
      - "4000:4000"
v808comd commented 1 year ago

Thank you very much. This problem has been resolved. I did not use https proxy. Because it has not been used successfully.

Now use it directly http://ip:4000 Come to visit, but the open page is a blank page. My Docker Compose.yml file is as follows:

version: "3"

services: zerotier: image: zyclonite/zerotier:1.10.6 container_name: zu-controller restart: unless-stopped volumes:

aruznieto commented 1 year ago

Try

- ZU_CONTROLLER_ENDPOINT=http://zerotier:9993/
- ZU_SECURE_HEADERS=false
v808comd commented 1 year ago

Attempted F12 can see the following prompt: The Cross-Origin-Opener-Policy header has been ignored, because the URL's origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the 'localhost' origin instead. See https://www.w3.org/TR/powerful-features/#potentially-trustworthy-origin and https://html.spec.whatwg.org/#the-cross-origin-opener-policy-header.

The page requested an origin-keyed agent cluster using the Origin-Agent-Cluster header, but could not be origin-keyed since the origin 'http://192.168.2.100:4000' had previously been placed in a site-keyed agent cluster. Update your headers to uniformly request origin-keying for all pages on the origin.

GET https://192.168.2.100:4000/app/assets/index-81542e93.css net::ERR_SSL_PROTOCOL_ERROR GET https://192.168.2.100:4000/app/assets/index-ff38f170.js net::ERR_SSL_PROTOCOL_ERROR GET https://192.168.2.100:4000/app/favicon.ico net::ERR_SSL_PROTOCOL_ERROR

v808comd commented 1 year ago

Looks like it's forced to use HTTPS

aruznieto commented 1 year ago

Looks like it's forced to use HTTPS

It is strange, are you sure that your browser is no loading cache?

v808comd commented 1 year ago

Thank you, you are right. It's a cache issue

aruznieto commented 1 year ago

Thank you, you are right. It's a cache issue

👍🏻

dec0dOS commented 1 year ago

Thanks for your support, @aruznieto! Closing the issue.

KweezyCode commented 3 months ago

please reopen, issue still persists even with cache cleared, also tried on mobile - same issue image

dec0dOS commented 3 months ago

@KweezyCode you should set ZU_SECURE_HEADERS to false or use HTTPS in order to access the UI