mirror of
https://github.com/WorldEditAxe/eaglerproxy.git
synced 2024-11-08 06:56:03 -08:00
2.9 KiB
2.9 KiB
EaglercraftX (1.8.9) WebSocket Proxy
Demo: wss://eaglerx-server.worldeditaxe.repl.co/server
(EaglerX 1.8.9 client only)
What is this?
A WebSocket proxy that allows EaglercraftX 1.8 clients to connect to an offline vanilla Minecraft server with (mostly working) Eaglercraft skin support. This is meant to be a replacement for the unreleased official EaglercraftX bungee until it releases. It supports all offline 1.8.9 servers and even online servers when modified!
Setup Guide
Prerequisites
- Node.js v12 and up
- TypeScript installed (
npm i -g typescript
, may requiresudo
or administrator permissions) - An OFFLINE 1.8.9-compatible Minecraft server or proxy
Setup Guide
If Repl.it is acceptable, fork the demo and connect to it. All proxy files will be under the proxy
folder.
- Download and extract this repository to a folder on your computer.
- Open a terminal and go to the folder of the repository. Run
npm i
, followed bytsc
. - Edit
config.js
to configure your proxy. Below is a small breakdown of the configuration file.
export const config = {
// The name of the proxy. (unused, required for MOTD)
name: "Proxy",
// The address to bind the WebSocket server to.
bindHost: "0.0.0.0",
// The port to bind the WebSocket server to.
// Use 80 if security.enabled is false, and 443 when it is true.
bindPort: 80,
// The max amount of concurrent connections allowed at once. (player cap)
maxPlayers: 20,
motd: {
// The file path that leads to an image.
// A 64x64 image is recommended, but any image with a 1:1 ratio will work.
iconURL: "./icon.webp",
// The first line of the MOTD.
l1: "hi",
// The second line of the MOTD.
l2: "lol"
},
server: {
// The hostname/IP of the remote server you want the proxy to connect to.
host: "127.0.0.1",
// The port of the remote server you want the proxy to connect to.
// On most Minecraft server installations, the default port is 25565.
port: 25565
},
security: {
// Set this to true to enable encryption (wss://).
// If you're using Repl.it, there's no need to enable encryption as it comes by default on all repls.
// You will need to obtain certificate files in order to enable encryption.
enabled: false,
// The private key file provided to you by your certificate authority.
key: null,
// The certificate file provided to you by your certificate authority.
cert: null
}
};
- Start your proxy by running
node index.js
. - Connect to your server. For the server address, use the folllowing format:
ws://<IP>:<port>
. If you are using encryption, replacews://
withwss://
.