Browse Source

update: real ip in nginx log

master
Dnomd343 2 years ago
parent
commit
6e48634121
  1. 5
      kms.php

5
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;
}

Loading…
Cancel
Save