feature:install brooklyn-ui-proxy
org.apache.brooklyn.ui.proxy-myNewProxy
alias
entry. The alias is the path that the proxy will be exposed on eg alias = /my-proxy will be exposed on http://localhost:8181/my-proxytarget
entry. The target is the proxy destination.karaf@brooklyn()> config:edit org.apache.brooklyn.ui.proxy-myNewProxy karaf@brooklyn()> config:property-set alias /my-proxy karaf@brooklyn()> config:property-set target http://localhost:9999/myDatabase karaf@brooklyn()> config:update
Create a new cfg file in <karaf_home/etc/
the file must have the same form as above ie org.apache.brooklyn.ui.proxy-myNewProxy.cfg
Add the two required fields
alias = /my-proxy target = http://localhost:9999/myDatabase
Add the fields username
& password
to the above PID
alias = /my-proxy target = http://localhost:9999/myDatabase username = admin password = p@55w0rd
All created proxies use a default httpContext proxy-context
this can be overridden by setting the field httpContext.id
By default the UiProxyHttpContext
uses the karaf
realm this can be configured by adding the PID org.apache.brooklyn.ui.proxy.security/ui.proxy.security.realm