Skip to content

Instantly share code, notes, and snippets.

@naz19
Created October 12, 2018 17:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naz19/afa2d911d2d194350973512078c92349 to your computer and use it in GitHub Desktop.
Save naz19/afa2d911d2d194350973512078c92349 to your computer and use it in GitHub Desktop.
NGINX configuration for Apache Superset
location /superset/ {
proxy_pass http://localhost:8088/superset/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# required as superset has hardcoded base path urls
location /static/ {
proxy_pass http://localhost:8088/static/;
}
# to expose a specific dashboard using a custom url
# the below example will make dashboard 2 available in standalone mode
# on $host/dashboards/my-dashboard
location /dashboards/my-dashboard {
proxy_pass http://localhost:8088/superset/dashboard/2/?standalone=true;
}
@musicmuthu
Copy link

is it working ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment