GitHub user dsuarez added a comment to the discussion: superset_app_root 
doesn't work in superset 4.1.2 with nginx

I am also having problems with this topic.

I have tried multiple configurations, including APPLICATION_ROOT variable in 
superset_config.py, and environment variable SUPERSET_APP_ROOT. It is unclear 
what is the right way to do it properly.

Moreover, in some of the configurations, I was able to access superset in my 
non-root directory, but statics were not properly located.

I am using docker-compose. I mount superset_config.py from host in 
/app/pythonpath_docker in the containers.

I am using nginx as proxy to load certificates and HTTPs, like this:

    location /my/dir/ {
        proxy_pass         http://superset_upstream/my/dir;
        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;
    }

 

GitHub link: 
https://github.com/apache/superset/discussions/33229#discussioncomment-12968375

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to