Code Monkey home page Code Monkey logo

Comments (6)

The-Judge avatar The-Judge commented on June 12, 2024 1

Sure - just let me know in case you need any details. In the meantime, I'll try to provide meaningful info best-efford-wise:

This is my docker-compose.yml:

---
version: '2'
services:
  zoonavigator:
    image: elkozmon/zoonavigator:latest
    hostname: zoonavigator
    container_name: zoonavigator
    restart: unless-stopped
    ports:
      - 9000
    environment:
      HTTP_PORT: 9000
      VIRTUAL_HOST: deb11zk03.zen-net.de
      VIRTUAL_PORT: 9000
      CONNECTION_DEFAULT_CONN: 172.28.128.40:2181,172.28.128.42:2181,172.28.128.41:2181
      CONNECTION_DEFAULT_NAME: Zen-Net DEV

  nginx:
    image: nginxproxy/nginx-proxy
    container_name: nginx
    restart: unless-stopped
    ports:
      - 80:80
      - 443:443
    volumes:
      - /var/run/docker.sock:/tmp/docker.sock:ro
      - /etc/nginx/virtual_host_htpasswds:/etc/nginx/htpasswd:ro
    environment:
      ENABLE_IPV6: 'true'
      DEFAULT_HOST: deb11zk03.zen-net.de

The nginxproxy/nginx-proxy-Image picks up files from /etc/nginx/htpasswd, which are named like the ${VIRTUAL_HOST}-Variable of the to-be-proxied - hosts, which is deb11zk03.zen-net.de in this case. So I added a htaccess - file at /etc/nginx/virtual_host_htpasswds/deb11zk03.zen-net.de on the Docker host, which ends up as /etc/nginx/htpasswd/deb11zk03.zen-net.de in the container.

With that, Basic auth works, but leads to the shown error in Zoonavigator.

from zoonavigator.

elkozmon avatar elkozmon commented on June 12, 2024 1

Hi. I just want to let you know that I have successfully tested your scenario with nginx proxy and basic auth. The fix is being released in version 1.1.1.

from zoonavigator.

elkozmon avatar elkozmon commented on June 12, 2024

from zoonavigator.

The-Judge avatar The-Judge commented on June 12, 2024

Is anything missing or may I help by providing additional details? In our Infrastructure, this is what blocks us from using the tool, currently.

from zoonavigator.

elkozmon avatar elkozmon commented on June 12, 2024

Sorry for the late reply and thank you for all the info provided.

From what I gathered, the use of basic auth proxy is currently broken. In this setup both nginx and zoonavigator use the Authorization header overwriting each other, hence the error. Quick fix seems to be to use custom authorization header for zoonavigator (unless there's other way to configure this on nginx's end which I'm not aware of). Sorry for not catching that earlier.

I understand the importance of this issue for you and would love to fix it asap. Sadly, it may take me a two to four weeks to be able to properly get on with this and test it thoroughly since this is just my free-time project and still have lot to catch up in my "real" job (I don't want to roll out a quick fix that can break a lot of other things for current users). I will update this thread with any news I have.

from zoonavigator.

The-Judge avatar The-Judge commented on June 12, 2024

Hi @elkozmon ,

just wanted to confirm that this is fixed! Works like a charm; thanks for your efforts!

from zoonavigator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.