Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed May 11, 2022
2 parents 761c8c3 + b7e84b3 commit de44e27
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 10 deletions.
12 changes: 12 additions & 0 deletions changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 http://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
<body>

<release version="1.12.2" date="2022-05-11">
<action type="add" dev="trichter">
Role aem-dispatcher: Add remoteip functionality to author vhosts.
</action>
<action type="add" dev="trichter">
Role aem-dispatcher: Introduce httpd.remoteIPHeader to allow configuration of the header representing the client ip.
</action>
<action type="fix" dev="trichter">
Role aem-dispatcher: Fix not working condition for remoteip module introduced with 1.3.0
</action>
</release>

<release version="1.12.0" date="2022-03-15">
<action type="add" dev="nbellack">
Role aem-dispatcher, aem-dispatcher-ams, aem-dispatcher-cloud: Make log level for mod_rewrite configurable.
Expand Down
4 changes: 2 additions & 2 deletions conga-aem-definitions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
<parent>
<groupId>io.wcm.devops.conga.definitions</groupId>
<artifactId>io.wcm.devops.conga.definitions.aem.parent</artifactId>
<version>1.12.0</version>
<version>1.12.2</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>

<groupId>io.wcm.devops.conga.definitions</groupId>
<artifactId>io.wcm.devops.conga.definitions.aem</artifactId>
<version>1.12.0</version>
<version>1.12.2</version>
<packaging>config-definition</packaging>

<name>CONGA AEM Definitions</name>
Expand Down
2 changes: 2 additions & 0 deletions conga-aem-definitions/src/main/roles/aem-dispatcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ config:
remoteIPInternalProxies:
# - 10.0.2.0/24
# - gateway.localdomain
# The name of the header the remoteip module is using for detecting the client IP address
remoteIPHeader: X-Forwarded-For

dispatcher:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ CustomLog ${APACHE_LOG_DIR}/vhost_author_access.log {{httpd.logging.accessLogFor
RewriteEngine On
{{/block}}

{{~#block "remoteIPForwarding"}}
{{~#if httpd.remoteIPInternalProxies}}
# Trusted remote ip proxies
<IfModule mod_remoteip.c>
{{~#each httpd.remoteIPInternalProxies}}
RemoteIPInternalProxy {{this}}
{{~/each}}
RemoteIPHeader {{httpd.remoteIPHeader}}
</IfModule>
{{~/if}}
{{/block}}

{{~#block "rewriteEnforcePrimaryHostname"}}
# Make sure primary hostname is always used - but don't rewrite the dispatcher invalidation URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ RewriteEngine On
{{~#block "remoteIPForwarding"}}
{{~#if httpd.remoteIPInternalProxies}}
# Trusted remote ip proxies
<IfModule remoteip>
<IfModule mod_remoteip.c>
{{~#each httpd.remoteIPInternalProxies}}
RemoteIPInternalProxy {{this}}
{{~/each}}
RemoteIPHeader {{httpd.remoteIPHeader}}
</IfModule>
{{~/if}}
{{/block}}
Expand Down
6 changes: 3 additions & 3 deletions example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
<parent>
<groupId>io.wcm.maven</groupId>
<artifactId>io.wcm.maven.global-parent</artifactId>
<version>36</version>
<version>44</version>
<relativePath />
</parent>

<groupId>io.wcm.devops.conga.definitions</groupId>
<artifactId>io.wcm.devops.conga.definitions.aem.example</artifactId>
<packaging>config</packaging>
<version>1.12.0</version>
<version>1.12.2</version>

<name>CONGA AEM Definitions Example</name>
<description>Example environment definition.</description>
Expand All @@ -43,7 +43,7 @@
<dependency>
<groupId>io.wcm.devops.conga.definitions</groupId>
<artifactId>io.wcm.devops.conga.definitions.aem</artifactId>
<version>1.12.0</version>
<version>1.12.2</version>
</dependency>

</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
<parent>
<groupId>io.wcm.devops</groupId>
<artifactId>io.wcm.devops.parent_toplevel</artifactId>
<version>1.3.0</version>
<version>1.3.2</version>
<relativePath />
</parent>

<groupId>io.wcm.devops.conga.definitions</groupId>
<artifactId>io.wcm.devops.conga.definitions.aem.parent</artifactId>
<version>1.12.0</version>
<version>1.12.2</version>
<packaging>pom</packaging>

<name>CONGA AEM Definitions</name>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
<parent>
<groupId>io.wcm.devops.conga.definitions</groupId>
<artifactId>io.wcm.devops.conga.definitions.aem.parent</artifactId>
<version>1.12.0</version>
<version>1.12.2</version>
<relativePath>parent/pom.xml</relativePath>
</parent>

<groupId>io.wcm.devops.conga.definitions</groupId>
<artifactId>io.wcm.devops.conga.definitions.aem.root</artifactId>
<version>1.12.0</version>
<version>1.12.2</version>
<packaging>pom</packaging>

<name>CONGA AEM Definitions</name>
Expand Down

0 comments on commit de44e27

Please sign in to comment.