Skip to content

Instantly share code, notes, and snippets.

@geekbass
Last active June 8, 2018 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geekbass/cc51a229f1c08536936c8d172e533d70 to your computer and use it in GitHub Desktop.
Save geekbass/cc51a229f1c08536936c8d172e533d70 to your computer and use it in GitHub Desktop.
Spark on DC/OS UI Proxy
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://driverforss-rva-processing.spark-2.2.mesos:4040/jobs/;
sub_filter_types text/html;
sub_filter_once off;
sub_filter '="/' '="/service/spark-jobs/';
sub_filter 'var PATH_PREFIX = "";' 'var PATH_PREFIX = "/service/spark-jobs";';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment