This repository contains a Flask + Socket.IO chat server.
Railway supports Python apps and works great with Cloudflare DNS/CDN.
Create a Railway account at https://railway.app
Connect your GitHub repository (push this code to GitHub first)
Railway will auto-detect Python and deploy using the Dockerfile
Get the Railway domain (e.g., chat-server.up.railway.app)
odinroom.org → chat-server.up.railway.apphttps://odinroom.org with Cloudflare CDN!If you prefer to run locally:
Install Python dependencies:
python -m pip install -r requirements.txt
cloudflared:
Authenticate with Cloudflare:
cloudflared tunnel login
Create a tunnel:
cloudflared tunnel create chat-server
.cloudflared/config.yml:
tunnel: <TUNNEL_ID> and optionally credentials-file if Cloudflare created oneodinroom.orgIf you need Cloudflare DNS routing, run:
cloudflared tunnel route dns <TUNNEL_ID> odinroom.org
Run the chat server:
python chat.py
Start the tunnel:
cloudflared tunnel run chat-server
If you just want a quick public endpoint without a custom hostname:
cloudflared tunnel --url http://localhost:5000
Then use the generated trycloudflare.com URL.