Skip to content

Commit 069c96a

Browse files
authored
Add ip logging
1 parent 096fed0 commit 069c96a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/nginx.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,7 @@ http {
5858
error_log /var/log/nginx/realt-api_error.log;
5959
access_log /var/log/nginx/realt-api_access.log;
6060
}
61+
real_ip_header X-Forwarded-For;
62+
real_ip_recursive on;
63+
set_real_ip_from 172.18.0.0/24;
6164
}

0 commit comments

Comments
 (0)