Skip to content

Commit

Permalink
Merge pull request #9 from OpenSRP/fix-opensrp-keycloak-comm
Browse files Browse the repository at this point in the history
update chart version and readme
  • Loading branch information
bennsimon authored Apr 19, 2021
2 parents 6d5a30d + 3677545 commit e4a0c97
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/opensrp-server-web/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.4
version: 0.1.5

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: v2.6.5-SNAPSHOT
appVersion: v2.6.6-SNAPSHOT
6 changes: 5 additions & 1 deletion charts/opensrp-server-web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,4 +292,8 @@ The following table lists the configurable parameters of the Opensrp-server-web
| `rabbitmq.max_concurrent_consumers` | | `1` |
| `spring_active_profiles` | | `["postgres", "jedis", "oauth2"]` |
| `oauth_profiles` | `(Array)` | `null` |

| `tomcatRemoteIpValve.className` | | `"org.apache.catalina.valves.RemoteIpValve"` |
| `tomcatRemoteIpValve.protocolHeader` | | `"x-forwarded-proto"` |
| `tomcatRemoteIpValve.proxiesHeader` | | `"x-forwarded-by"` |
| `tomcatRemoteIpValve.remoteIpHeader` | | `"x-forwarded-for"` |
| `useTomcatRemoteIpValve` | | `false` |
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,14 @@
driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://{{ .Values.postgres.host }}:{{ .Values.postgres.port }}/{{ .Values.postgres.database }}"
/>

{{- if .Values.useTomcatRemoteIpValve }}
<Valve
{{- range $index, $element:=.Values.tomcatRemoteIpValve }}
{{ $index }}="{{ $element }}"
{{- end }}
/>
{{- end}}

</Context>
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ oauth.default.token.validity={{ .token_validity }}
oauth.default.callback.url={{ .callback_url }}
oauth.default.roles={{ .roles | join "," }}
#end
{{end}}
{{ end }}

{{- end }}
12 changes: 12 additions & 0 deletions charts/opensrp-server-web/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ tolerations: []

affinity: {}

# if true it applies tomcatRemoteIpValve properties on the opensrp context.xml file
useTomcatRemoteIpValve: false

# Enable useTomcatRemoteIpValve to use this feature
# This valve replaces the apparent client remote IP address and hostname for the request with the IP address list presented by a proxy or a load balancer via a request headers
# Refer to https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/catalina/valves/RemoteIpValve.html
# Include 'internalProxies' for address family of the pod network, omit this to use the default (refer to url above)
tomcatRemoteIpValve:
className: 'org.apache.catalina.valves.RemoteIpValve'
remoteIpHeader: 'x-forwarded-for'
proxiesHeader: 'x-forwarded-by'
protocolHeader: 'x-forwarded-proto'

# Recreates pods when configMap changes, default is true
recreatePodsWhenConfigMapChange: true
Expand Down

0 comments on commit e4a0c97

Please sign in to comment.