From 6e48634121d9ae15b448a28f2bbdf6d7c7ddde6a Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Fri, 28 Oct 2022 18:52:06 +0800 Subject: [PATCH] update: real ip in nginx log --- kms.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kms.php b/kms.php index 2082206..56c760a 100755 --- a/kms.php +++ b/kms.php @@ -34,6 +34,11 @@ function load_nginx_config(int $kms_port, int $http_port): void { listen $http_port; listen [::]:$http_port ipv6only=on; + set_real_ip_from ::/0; + set_real_ip_from 0.0.0.0/0; + real_ip_header X-Real-IP; + real_ip_recursive on; + location /assets { root /kms-server; }