You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by gi...@git.apache.org on 2017/10/09 12:42:28 UTC

[GitHub] Webgardener commented on issue #1866: Fix hardcoded urls in python and template files.

Webgardener commented on issue #1866: Fix hardcoded urls in python and template files.
URL: https://github.com/apache/incubator-superset/pull/1866#issuecomment-335146449
 
 
   Hello @mrpapini . 
   I also needed an /apps location for Superset. The  werkzeug.contrib.fixers.ProxyFix middlware helped a lot :) But still had issues with harcoded urls and redirection (superset/welcome ...). 
   
   Here my nginx configuration to make it work completely :
   
   ```
     server {
      listen       superset:80;
      server_name  superset;
      location /apps {
        proxy_pass http://0.0.0.0:8088;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Scheme $scheme;
        proxy_set_header X-Script-Name /apps;
      }
    
      location ~ ^/(static|superset|sqllab|savedqueryview) {
        try_files $uri /apps/$uri;
      }
    
    }
   ```
   
   
    
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services