Skip to content

Commit 3168b8c

Browse files
committed
Merge branch 'main' into develop
2 parents 4e953c2 + 6c908ac commit 3168b8c

File tree

6 files changed

+8
-147
lines changed

6 files changed

+8
-147
lines changed

.docker/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ http {
1818
include /etc/nginx/mime.types;
1919
default_type application/octet-stream;
2020

21-
set_real_ip_from 172.16.0.0/8;
21+
set_real_ip_from 172.16.0.0/16;
2222
real_ip_recursive on;
2323
real_ip_header X-Forwarded-For;
2424

.docker/templates/default.conf.template

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ server {
66

77
client_max_body_size ${NGINX_MAX_BODY_SIZE};
88

9+
# This also needs to be set in the single server tag and not only in http.
10+
set_real_ip_from 172.16.0.0/16;
11+
real_ip_recursive on;
12+
real_ip_header X-Forwarded-For;
13+
914
location = /favicon.ico {
1015
log_not_found off;
1116
access_log off;

.docker/vhost.conf

Lines changed: 0 additions & 92 deletions
This file was deleted.

.github/workflows/docker-image.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).
88

99
## [Unreleased]
1010

11+
- DevOps: Update docker setup to ensure real IPs in logs
12+
1113
## [1.2.0]
1214

1315
- [PR-366](https://github.com/itk-dev/os2loop/pull/366)

Dockerfile

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)