Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Provide uaa.port default value through spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmyers9 authored and James Myers and Jesse Zhang committed Dec 30, 2014
1 parent 01c0e9b commit ffcfe44
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion jobs/uaa/spec
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ properties:
uaa.jwt.verification_key:
description:
uaa.port:
description:
description: Port that uaa will accept connections on
default: 8080
uaa.scim.user:
description:
uaa.scim.user.override:
Expand Down
2 changes: 1 addition & 1 deletion jobs/uaa/templates/cf-registrar.config.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ uri:
- uaa.<%= properties.domain %>
host: <%= spec.networks.send(properties.networks.apps).ip %>
index: <%= spec.index %>
port: <%= (properties.uaa && properties.uaa.port) ? properties.uaa.port : 8080 %>
port: <%= p("uaa.port") %>
tags:
component: uaa
varz:
Expand Down
2 changes: 1 addition & 1 deletion jobs/uaa/templates/tomcat.server.xml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<Service name="Catalina">

<Connector class="org.apache.coyote.http11.Http11NioProtocol" port="<%= (properties.uaa && properties.uaa.port) ? properties.uaa.port : 8080 %>" protocol="HTTP/1.1" connectionTimeout="20000"/>
<Connector class="org.apache.coyote.http11.Http11NioProtocol" port="<%= p("uaa.port") %>" protocol="HTTP/1.1" connectionTimeout="20000"/>
<Engine name="Catalina" defaultHost="localhost">

<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="false">
Expand Down

0 comments on commit ffcfe44

Please sign in to comment.