| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <service role="HUE" name="hue" version="1.0.0"> |
| <metadata> |
| <type>UI</type> |
| <context>/hue</context> |
| <shortDesc>Hue UI</shortDesc> |
| <description>Hue UI is a Web interface for analyzing data with Apache Hadoop</description> |
| </metadata> |
| <routes> |
| <!-- Since we don't have to rewrite URLs for all javascript, we single out these 2 exceptions: 1 for workers & the other for the base URL --> |
| <route path="/hue/desktop/workers/{**}?{**}"> |
| <rewrite apply="HUE/hue/inbound/huerule" to="request.url"/> |
| <rewrite apply="HUE/hue/outbound/headers" to="response.headers"/> |
| <rewrite apply="HUE/hue/outbound/workers" to="response.body"/> |
| </route> |
| <route path="/hue/desktop/globalJsConstants.js?{**}"> |
| <rewrite apply="HUE/hue/inbound/huerule" to="request.url"/> |
| <rewrite apply="HUE/hue/outbound/headers" to="response.headers"/> |
| <rewrite apply="HUE/hue/outbound/global" to="response.body"/> |
| </route> |
| <!-- All URLs except above exceptions --> |
| <route path="/hue/**"> |
| <rewrite apply="HUE/hue/inbound/huerule" to="request.url"/> |
| <rewrite apply="HUE/hue/outbound/headers" to="response.headers"/> |
| <rewrite apply="HUE/hue/outbound/huerooturl" to="response.body"/> |
| </route> |
| <route path="/hue/"> |
| <rewrite apply="HUE/hue/inbound/huerule" to="request.url"/> |
| <rewrite apply="HUE/hue/outbound/headers" to="response.headers"/> |
| <rewrite apply="HUE/hue/outbound/huerooturl" to="response.body"/> |
| </route> |
| <route path="/hue/**?**"> |
| <rewrite apply="HUE/hue/inbound/huerule" to="request.url"/> |
| <rewrite apply="HUE/hue/outbound/headers" to="response.headers"/> |
| <rewrite apply="HUE/hue/outbound/huerooturl" to="response.body"/> |
| </route> |
| <route path="/hue/?**"> |
| <rewrite apply="HUE/hue/inbound/huerule" to="request.url"/> |
| <rewrite apply="HUE/hue/outbound/headers" to="response.headers"/> |
| <rewrite apply="HUE/hue/outbound/huerooturl" to="response.body"/> |
| </route> |
| </routes> |
| <dispatch classname="org.apache.knox.gateway.dispatch.ConfigurableDispatch" |
| ha-classname="org.apache.knox.gateway.ha.dispatch.ConfigurableHADispatch"> |
| <param> |
| <name>responseExcludeHeaders</name> |
| <value>WWW-AUTHENTICATE</value> |
| </param> |
| <param> |
| <name>httpclient.connectionTimeout</name> |
| <value>5m</value> |
| </param> |
| <param> |
| <name>httpclient.socketTimeout</name> |
| <value>5m</value> |
| </param> |
| </dispatch> |
| </service> |