This commit is contained in:
Keanu Taufan 2024-10-24 20:40:09 +07:00
parent 1b4bbe712e
commit c0212de1ad
No known key found for this signature in database
GPG Key ID: 1952D665A3A51BE0

31
Dementor/18.sh Normal file
View File

@ -0,0 +1,31 @@
#!/bin/bash
service nginx start
cat > /etc/nginx/sites-enabled/default <<EOL
upstream backend {
server 10.67.6.4; # IP LunaLovegood
server 10.67.6.3; # IP FiliusFlitwick
server 10.67.6.14; # IP ChoChang (setelah nomor 5)
}
server {
listen 80;
listen [::]:80;
server_name _;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
location / {
proxy_pass http://backend;
proxy_bind 10.67.4.4;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header Host \$http_host;
}
}
EOL
nginx -s reload