Skip to content

Commit

Permalink
[nginx] try to show real IP in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
capcom6 committed May 31, 2024
1 parent fa4fbe4 commit 58c0a86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
server {
listen 80;

set_real_ip_from 10.0.0.0/8;
real_ip_header X-Forwarded-For;

location / {
root /usr/share/nginx/html;
index index.html;
Expand Down

0 comments on commit 58c0a86

Please sign in to comment.