@@ -15,17 +15,18 @@ if [ "${SPARK_SSL_ENABLED}" == true ]; then
1515 OTHER_SCHEME=http
1616fi
1717
18- export WEBUI_URL=" ${SCHEME} ://${FRAMEWORK_NAME}${DNS_SUFFIX} :${SPARK_PROXY_PORT} "
19- export HISTORY_SERVER_WEB_PROXY_BASE=" /service/${FRAMEWORK_NAME} /history"
20- export DISPATCHER_UI_WEB_PROXY_BASE=" /service/${FRAMEWORK_NAME} "
18+ # TODO(mgummelt): I'm pretty sure this isn't used. Remove after some time.
19+ # export WEBUI_URL="${SCHEME}://${FRAMEWORK_NAME}${DNS_SUFFIX}:${SPARK_PROXY_PORT}"
20+
21+ export HISTORY_SERVER_WEB_PROXY_BASE=" /service/${DCOS_SERVICE_NAME} /history"
22+ export DISPATCHER_UI_WEB_PROXY_BASE=" /service/${DCOS_SERVICE_NAME} "
2123
2224# configure history server
2325if [ " ${ENABLE_HISTORY_SERVER:= false} " = " true" ]; then
2426 ln -s /var/lib/runit/service/history-server /etc/service/history-server
2527fi
2628
27- # remove whole lines with the wrong scheme, remove #<SCHEME># string only for
28- # the scheme we want to configure.
29+ # Update nginx spark.conf to use http or https
2930grep -v " #${OTHER_SCHEME} #" /etc/nginx/conf.d/spark.conf.template |
3031 sed " s,#${SCHEME} #,," > /etc/nginx/conf.d/spark.conf
3132
@@ -39,7 +40,7 @@ sed -i "s,<PROTOCOL>,${SPARK_SSL_PROTOCOL}," /etc/nginx/conf.d/spark.conf
3940# bytes cipher strings of Java.
4041# sed -i "s,<ENABLED_ALGORITHMS>,${SPARK_SSL_ENABLEDALGORITHMS//,/:}," /etc/nginx/conf.d/spark.conf
4142
42- # extract cert and key from keystore
43+ # extract cert and key from keystore, write to /etc/nginx/spark.{crt,key}
4344if [ " ${SPARK_SSL_ENABLED} " == true ]; then
4445 KEYDIR=` mktemp -d`
4546 trap " rm -rf $KEYDIR " EXIT
0 commit comments