added ip forwarding
This commit is contained in:
parent
4476ad6504
commit
4ba7215616
|
@ -8,6 +8,10 @@
|
||||||
|
|
||||||
**THIS REPLIT USES [PluginInstaller](https://github.com/darverdevs/PluginInstaller)**
|
**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
|
## 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)
|
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)
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,8 @@ http {
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
listen 8000;
|
listen 8000;
|
||||||
listen [::]:8000;
|
listen [::]:8000;
|
||||||
|
listen 3000;
|
||||||
|
listen [::]:3000;
|
||||||
|
|
||||||
client_body_temp_path /tmp/nginx 1 2;
|
client_body_temp_path /tmp/nginx 1 2;
|
||||||
proxy_temp_path /tmp/nginx-proxy;
|
proxy_temp_path /tmp/nginx-proxy;
|
||||||
|
@ -23,6 +25,7 @@ http {
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "Upgrade";
|
proxy_set_header Connection "Upgrade";
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $http_x_forwarded_for;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,8 @@ http {
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
listen 8000;
|
listen 8000;
|
||||||
listen [::]:8000;
|
listen [::]:8000;
|
||||||
|
listen 3000;
|
||||||
|
listen [::]:3000;
|
||||||
|
|
||||||
client_body_temp_path /tmp/nginx 1 2;
|
client_body_temp_path /tmp/nginx 1 2;
|
||||||
proxy_temp_path /tmp/nginx-proxy;
|
proxy_temp_path /tmp/nginx-proxy;
|
||||||
|
@ -23,6 +25,7 @@ http {
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "Upgrade";
|
proxy_set_header Connection "Upgrade";
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $http_x_forwarded_for;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user