location /minecraft proxy_pass http://localhost:8081; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";
Also allow it in your OS firewall:
java -Xmx2G -jar EaglercraftServer.jar Use -Xmx4G for larger servers.
The console will show:
sudo ufw allow 8081/tcp Add inbound rule for port 8081. Step 6: Start the Server Run it with more RAM (optional but recommended for >10 players):