feat(games): add whopixels hosting at whopxl.mana.how

Dockerfile, docker-compose service (port 5100), Caddy and cloudflared
routing for the WhoPixels game. PORT is now configurable via env var.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-20 19:57:50 +01:00
parent 2eb280cc07
commit d9ccb5e31b
59 changed files with 348 additions and 77 deletions

View file

@ -0,0 +1,13 @@
FROM node:20-alpine
WORKDIR /app
COPY games/whopixels/package.json ./
RUN npm install --production
COPY games/whopixels/ ./
ENV PORT=5100
EXPOSE 5100
CMD ["node", "server.js"]

View file

@ -10,7 +10,7 @@ require('dotenv').config();
const { parse } = require('querystring');
// Konfiguration
const PORT = 3000;
const PORT = process.env.PORT || 3000;
// Azure OpenAI API Konfiguration aus Umgebungsvariablen
const AZURE_OPENAI_API_KEY = process.env.AZURE_OPENAI_API_KEY;