File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
itkdev/etc/confd/templates
os2display/etc/confd/templates Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
5
5
## [ Unreleased]
6
6
7
+ ## [ 2.0.2] - 2024-04-25
8
+
9
+ - [ #242 ] ( https://github.com/os2display/display-admin-client/pull/242 )
10
+ - Ensured real ip is logged in nginx.
11
+
7
12
## [ 2.0.1] - 2024-04-10
8
13
9
14
- [ #241 ] ( https://github.com/os2display/display-admin-client/pull/241 )
Original file line number Diff line number Diff line change @@ -34,7 +34,11 @@ http {
34
34
include /etc/nginx/mime.types;
35
35
default_type application/octet-stream;
36
36
37
- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
37
+ set_real_ip_from 172.16.0.0/8;
38
+ real_ip_recursive on;
39
+ real_ip_header X-Forwarded-For;
40
+
41
+ log_format main '$http_x_real_ip - $remote_user [$time_local] "$request" '
38
42
'$status $body_bytes_sent "$http_referer" '
39
43
'"$http_user_agent" "$http_x_forwarded_for"';
40
44
Original file line number Diff line number Diff line change @@ -34,7 +34,11 @@ http {
34
34
include /etc/nginx/mime.types;
35
35
default_type application/octet-stream;
36
36
37
- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
37
+ set_real_ip_from 172.16.0.0/8;
38
+ real_ip_recursive on;
39
+ real_ip_header X-Forwarded-For;
40
+
41
+ log_format main '$http_x_real_ip - $remote_user [$time_local] "$request" '
38
42
'$status $body_bytes_sent "$http_referer" '
39
43
'"$http_user_agent" "$http_x_forwarded_for"';
40
44
You can’t perform that action at this time.
0 commit comments