diff --git a/README.md b/README.md index 9224f9d..d541396 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,10 @@ **THIS REPLIT USES [PluginInstaller](https://github.com/darverdevs/PluginInstaller)** +**LATEST UPDATE: NOW FORWARDS IPS!!** + +**ALSO, IF IT DOESNT WORK, ANOTHER FIX IS TO RENAME THE REPLIT AND THEN RENAME IT BACK** + ## Helpful video tutorial by a generous user motd changing is DIFFERENT than what these tutorials say!! -- check the `java/bungee_command/config.yml` for how to change (motd1 is first line, motd2 (you can add this) is the 2nd one) diff --git a/nginx.conf b/nginx.conf index 4a8c3d2..91542a3 100644 --- a/nginx.conf +++ b/nginx.conf @@ -7,6 +7,8 @@ http { listen [::]:80; listen 8000; listen [::]:8000; + listen 3000; + listen [::]:3000; client_body_temp_path /tmp/nginx 1 2; proxy_temp_path /tmp/nginx-proxy; @@ -23,6 +25,7 @@ http { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $host; + proxy_set_header X-Real-IP $http_x_forwarded_for; break; } diff --git a/nginx_template.conf b/nginx_template.conf index 4a8c3d2..91542a3 100644 --- a/nginx_template.conf +++ b/nginx_template.conf @@ -7,6 +7,8 @@ http { listen [::]:80; listen 8000; listen [::]:8000; + listen 3000; + listen [::]:3000; client_body_temp_path /tmp/nginx 1 2; proxy_temp_path /tmp/nginx-proxy; @@ -23,6 +25,7 @@ http { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header Host $host; + proxy_set_header X-Real-IP $http_x_forwarded_for; break; }