mirror of
https://codeberg.org/polyteknisk-radiogruppe/the_prg_server_configuration.git
synced 2026-06-13 18:28:55 +02:00
Disable Cloudflare proxy for Minecraft record to allow direct client connections.
This commit is contained in:
parent
c0cb00ed55
commit
7ff4590722
1 changed files with 11 additions and 0 deletions
|
|
@ -842,6 +842,17 @@ in {
|
||||||
else
|
else
|
||||||
export record_name="$r.${domain}"
|
export record_name="$r.${domain}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Default to Cloudflare proxy enabled for all records, but explicitly
|
||||||
|
# disable the proxy for the Minecraft record so clients connect
|
||||||
|
# directly to the origin on port 25565 (Cloudflare does not proxy
|
||||||
|
# arbitrary Minecraft TCP without Spectrum).
|
||||||
|
if [ "$r" = "minecraft" ]; then
|
||||||
|
export proxy="false"
|
||||||
|
else
|
||||||
|
export proxy="true"
|
||||||
|
fi
|
||||||
|
|
||||||
# Invoke the single-run script explicitly with the system's bash via env to avoid /bin/bash shebang issues
|
# Invoke the single-run script explicitly with the system's bash via env to avoid /bin/bash shebang issues
|
||||||
${pkgs.bash}/bin/bash /etc/cloudflare-ddns/update-single.sh "$record_name" "$zone_identifier" "$auth_email" "$auth_key" || true
|
${pkgs.bash}/bin/bash /etc/cloudflare-ddns/update-single.sh "$record_name" "$zone_identifier" "$auth_email" "$auth_key" || true
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue