GitHub user dataconsulhms created a discussion: Direct dashboards without 
requiring a username and password from the superset.

I would like to open a dash in the superset using nginx. I'm using htpasswd and 
then opening an index.html page. This page has a link to the dash. When I click 
the link, it redirects to the superset but asks for the superset username and 
password. Well, that's exactly what I don't want. I need it to open the dash 
directly.

nginx:
server {
    listen 80;
    server_name bi.hsm;

    root /var/www/bi;
    index index.html;

    # Protege TODO o site com usuário/senha do Nginx
    auth_basic "Area restrita BI HSM";
    auth_basic_user_file /etc/nginx/.htpasswd;

    location = / {
        try_files /index.html =404;
    }

    location = /faturamento {
      return 302 /superset/dashboard/1/;
    }

    location / {
        proxy_pass http://127.0.0.1:8088/;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        # Passa o usuário autenticado do Nginx para o Superset
        proxy_set_header REMOTE_USER $remote_user;
    }
}


GitHub link: https://github.com/apache/superset/discussions/36009

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to