Skip to content

Commit

Permalink
fix(wiki-metaploy): reveal user's real ip
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Jun 8, 2024
1 parent 0564c2e commit 37236f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ pid /run/nginx.pid;
events {}

http {
# Get original IP address of the user
real_ip_header X-Real-IP;
set_real_ip_from 0.0.0.0/0;

include /etc/nginx/mime.types;
include /etc/nginx/conf.d/*.conf;

server {
listen 80 default_server;
Expand Down

0 comments on commit 37236f9

Please sign in to comment.