feat: add external access via Cloudflare DDNS
Some checks failed
Deploy / deploy (push) Has been cancelled

Add cloudflare-ddns container for automatic DNS updates, update game
server connection strings to use play.consultoria-as.com, and document
port forwarding and external access setup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
consultoria-as
2026-02-25 22:14:22 +00:00
parent 81e978947e
commit e65260c69b
4 changed files with 75 additions and 4 deletions

View File

@@ -17,3 +17,10 @@ MINIO_ROOT_PASSWORD=change_me_in_production
# Public URL (for frontend image/media URLs)
PUBLIC_STRAPI_URL=http://yourdomain.com
# Public hostname for game servers (DDNS)
PUBLIC_HOST=play.yourdomain.com
# Cloudflare API Token (create at https://dash.cloudflare.com/profile/api-tokens)
# Permissions needed: Zone > DNS > Edit
CF_API_TOKEN=your_cloudflare_api_token

View File

@@ -67,13 +67,22 @@ services:
ports:
- "3000:3000"
cloudflare-ddns:
image: favonia/cloudflare-ddns:latest
restart: unless-stopped
environment:
CF_API_TOKEN: ${CF_API_TOKEN}
DOMAINS: ${PUBLIC_HOST:-play.consultoria-as.com}
PROXIED: "false"
IP6_PROVIDER: none
openfusion:
build:
context: ../servers/openfusion
dockerfile: Dockerfile
restart: unless-stopped
environment:
SHARD_IP: ${OPENFUSION_SHARD_IP:-192.168.10.234}
SHARD_IP: ${PUBLIC_HOST:-192.168.10.234}
MOTD: ${OPENFUSION_MOTD:-Bienvenido a Project Afterlife - FusionFall Academy}
ports:
- "23000:23000"