From 8222a79bf45f42c0863e1f8de9f9be7d5a222db9 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sat, 3 Feb 2024 19:38:44 -0600 Subject: [PATCH] docs: add example of Paper running with PROXY protocol enabled (#2629) --- .../paper-proxy-protocol/config/paper-global.yml | 2 ++ examples/paper-proxy-protocol/docker-compose.yml | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 examples/paper-proxy-protocol/config/paper-global.yml create mode 100644 examples/paper-proxy-protocol/docker-compose.yml diff --git a/examples/paper-proxy-protocol/config/paper-global.yml b/examples/paper-proxy-protocol/config/paper-global.yml new file mode 100644 index 0000000..d8627d5 --- /dev/null +++ b/examples/paper-proxy-protocol/config/paper-global.yml @@ -0,0 +1,2 @@ +proxies: + proxy-protocol: true \ No newline at end of file diff --git a/examples/paper-proxy-protocol/docker-compose.yml b/examples/paper-proxy-protocol/docker-compose.yml new file mode 100644 index 0000000..8181f96 --- /dev/null +++ b/examples/paper-proxy-protocol/docker-compose.yml @@ -0,0 +1,15 @@ +services: + mc: + image: itzg/minecraft-server + environment: + EULA: true + TYPE: PAPER + ports: + # Use host port 25566 assuming mc-router or similar is bound to 25565 + - "25566:25565" + volumes: + - mc-data:/data + - ./config:/config:ro + +volumes: + mc-data: {} \ No newline at end of file