diff --git a/tasks/configuration.yml b/tasks/configuration.yml index a04be16..b8e1aa4 100644 --- a/tasks/configuration.yml +++ b/tasks/configuration.yml @@ -30,11 +30,14 @@ - letsencrypt.conf - sao-cache.conf -- name: "configuration | Kopiere SSL-Konfiguration" +- name: "configuration | Kopiere Templates" ansible.builtin.template: - src: ssl.conf - dest: /etc/apache2/conf-available/ssl.conf + src: "{{ item }}" + dest: /etc/apache2/conf-available/ mode: 0644 + loop: + - remoteip.conf + - ssl.conf - name: "configuration | Aktiviere Module" ansible.builtin.apache2_module: diff --git a/templates/remoteip.conf b/templates/remoteip.conf new file mode 100644 index 0000000..22892df --- /dev/null +++ b/templates/remoteip.conf @@ -0,0 +1,4 @@ +RemoteIPHeader X-Forwarded-For +RemoteIPTrustedProxy {{ gateway_host_ip }} + +LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" remotip