From c7023ec5dcc7b776a28dba62411a6f760c67a016 Mon Sep 17 00:00:00 2001 From: biran4454 <38665026+biran4454@users.noreply.github.com> Date: Tue, 24 Oct 2023 01:09:03 +0100 Subject: [PATCH] Update README.md --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0a9bf15..726bf67 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,15 @@ To be able to use the mod you have to be on the operating system Windows or Linu } } ] -``` \ No newline at end of file +``` + +## Setting up Cloudflare +You need to set up cloudflare on your server for this to work. There's plenty of guides on how to do this elsewhere. +Make sure in your config file (possibly in `/etc/cloudflared/config.yml`) you have the lines: +```YML +- hostname: example.domain.net + service: tcp://localhost:25565 +``` +Replace `example.domain.net` with the correct subdomain you want to use. If you're running multiple instances (eg. with docker), change the port 25565 to whatever port you're using. +Restart the cloudflare daemon (`sudo systemctl restart cloudflared`) to apply the changes. +Add the correct DNS entry: go to [Cloudflare dashboard](https://dash.cloudflare.net), go to your website and DNS entries, then add a new CNAME DNS entry with your subdomain and set the target to `.cfargotunnel.com`, with the tunnel ID found in the cloudflare config.yml file.