マオ
マオ
CDCloudflare Developers
Created by マオ on 3/13/2025 in #general-help
Nginx Streams
I'm pretty new to Nginx and managing subdomains etc. and this doesn't exactly have something to do with Cloudflare but I'm not sure where else to ask. This is my config for trying to setup minecraft servers:
stream {
map $ssl_preread_server_name $target {
alpha 192.168.178.2:27000; # I wasn't sure if I should reference the subdomain or the full name `alpha.example.com` but either way this didn't work.
beta 192.168.178.2:27001;
gamma 192.168.178.2:27002;
delta 192.168.178.2:27003;
epsilon 192.168.178.2:27004;

default 192.168.178.2:27000;
}

server {
listen 25565;
listen [::]:25565;

ssl_preread on;
proxy_connect_timeout 1s;
proxy_timeout 3;

proxy_pass $target;
}
}
stream {
map $ssl_preread_server_name $target {
alpha 192.168.178.2:27000; # I wasn't sure if I should reference the subdomain or the full name `alpha.example.com` but either way this didn't work.
beta 192.168.178.2:27001;
gamma 192.168.178.2:27002;
delta 192.168.178.2:27003;
epsilon 192.168.178.2:27004;

default 192.168.178.2:27000;
}

server {
listen 25565;
listen [::]:25565;

ssl_preread on;
proxy_connect_timeout 1s;
proxy_timeout 3;

proxy_pass $target;
}
}
My idea is to have n amound of CNAMEs and SRV records that all listen at 25565 (minecrafts default port) and forward to their respective subdomain on my server. that server then listens on said port 25565 and should forward it to the specific minecraft server depending on the subdomain. e.g.: alpha.example.com > 192.168.178.2:27000 beta.example.com > 192.168.178.2:27001 ... other.example.com > 192.168.178.2:27000 (default should either be the first one or no connection at all) currently everything coming in at 25565 resolves to the default being 192.168.178.2:27000 which isn't great. my motivation being that I had a setup before where the client would have to specify different ports if it wasn't the default one like beta.example.com:25566 which I'd like to avoid. Anyone have an idea how i could implement this/ where i could find more information on this topic? Thanks in advance
45 replies
CDCloudflare Developers
Created by マオ on 1/11/2025 in #general-help
domain transfer .de .fr .moe
Is it possible to transfer .de, .fr and .moe domains to cloudflare? .de and .fr i have at ionos, .moe im still working on acquiring. If I go to Account Home > Add a domain in the dashboard, it lets me add domains but im assuming this is not the same as transfering them? if transfer doesnt work, whats the next best option?
3 replies