diff options
Diffstat (limited to 'deployment')
-rw-r--r-- | deployment/docker/src/main/docker/Dockerfile | 2 | ||||
-rw-r--r-- | deployment/http/lighttpd/10-proxy.conf | 14 | ||||
-rw-r--r-- | deployment/http/web/index.html | 6 |
3 files changed, 12 insertions, 10 deletions
diff --git a/deployment/docker/src/main/docker/Dockerfile b/deployment/docker/src/main/docker/Dockerfile index f4556583..0c08bc54 100644 --- a/deployment/docker/src/main/docker/Dockerfile +++ b/deployment/docker/src/main/docker/Dockerfile @@ -18,7 +18,7 @@ ENV OPEN_CLI_HOME=/opt/oclip \ OPEN_CLI_DEBUG=false \ OPEN_CLI_DEBUG_PORT=5005 \ OPEN_CLI_MODE=console \ - OPEN_CLI_PRODUCT_IN_USE=open-cli \ + OPEN_CLI_PRODUCT_IN_USE=onap-beijing \ GOTTY_TITLE_FORMAT="{{ .command }}" ADD ./STAGE $OPEN_CLI_HOME diff --git a/deployment/http/lighttpd/10-proxy.conf b/deployment/http/lighttpd/10-proxy.conf index f6ce4946..a2da19c3 100644 --- a/deployment/http/lighttpd/10-proxy.conf +++ b/deployment/http/lighttpd/10-proxy.conf @@ -12,11 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -proxy.server = ( "/onap" => - ( - ( "host" => "127.0.0.1", - "port" => 8080 - ) - ) - ) - +$HTTP["url"] =~ "^/web-console" { + $HTTP["host"] =~ ".*" { + url.redirect = ( "^/(.*)" => "http://%0:8080" ) + url.redirect-code = 302 + } +} diff --git a/deployment/http/web/index.html b/deployment/http/web/index.html index c70e7018..04c356db 100644 --- a/deployment/http/web/index.html +++ b/deployment/http/web/index.html @@ -24,6 +24,10 @@ function redirectToConsole(){ window.location.href="http://"+ window.location.hostname + ":9090"; } +function redirectToConsoleOOM(){ + window.location.href="http://"+ window.location.hostname + ":30261"; +} + </script> <style> @@ -66,7 +70,7 @@ body { <h3 >Web Command Console (WCC)</h3> <p>Helps operator to access the command console over HTTP. -<a onclick="redirectToConsole();" style="color: blue;cursor: pointer">Click here !</a> +Click <a onclick="redirectToConsole();" style="color: blue;cursor: pointer">here !</a> OR <a onclick="redirectToConsoleOOM();" style="color: blue;cursor: pointer"> here !</a> <h3>Linux Shell</h3> <p>Helps operator to run CLI locally using Linux command shell. |