diff --git a/Dockerfile b/Dockerfile index 9ab1cf2..6736ad0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -# Production Dockerfile for Flashpoint Web (single image: API + UI) +# Production Dockerfile for Dotcom Arcade (single image: API + UI) # # The backend serves both the REST API / game content and the built React UI, # so this image runs a single Node process. Build from the repo root: -# docker build -t flashpoint-web . +# docker build -t dotcom-arcade . # ============================================================================= # Stage 1: Frontend builder - Build the React app @@ -54,10 +54,9 @@ FROM node:20.18.2-alpine # Metadata labels ARG VERSION=dev -LABEL org.opencontainers.image.title="Flashpoint Web" -LABEL org.opencontainers.image.description="Self-hosted web app for Flashpoint Archive (API + UI)" +LABEL org.opencontainers.image.title="Dotcom Arcade" +LABEL org.opencontainers.image.description="Self-hosted Flash-era game portal for Flashpoint Ultimate (API + UI)" LABEL org.opencontainers.image.version="${VERSION}" -LABEL org.opencontainers.image.source="https://github.com/darkraise/flashpoint-web" # An ARG does not survive into the running container; the server reads this to # decide whether it is a released build. diff --git a/backend/package.json b/backend/package.json index d23b578..4d57c33 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,5 +1,5 @@ { - "name": "flashpoint-web-backend", + "name": "dotcom-arcade-backend", "version": "1.0.0", "description": "Backend API for Flashpoint Archive web application", "main": "dist/server.js", diff --git a/backend/src/migrations/011_default_site_name.sql b/backend/src/migrations/011_default_site_name.sql new file mode 100644 index 0000000..c016518 --- /dev/null +++ b/backend/src/migrations/011_default_site_name.sql @@ -0,0 +1,11 @@ +-- =================================== +-- Migration 011: Default site name +-- =================================== +-- The project is now Dotcom Arcade. Installs still on the old default take the +-- new one; a name an admin chose is left alone. + +UPDATE system_settings +SET + default_value = 'Dotcom Arcade', + value = CASE WHEN value = 'Flashpoint Web' THEN 'Dotcom Arcade' ELSE value END +WHERE key = 'app.site_name'; diff --git a/backend/src/routes/errors.ts b/backend/src/routes/errors.ts index 3cbb89a..b13e197 100644 --- a/backend/src/routes/errors.ts +++ b/backend/src/routes/errors.ts @@ -61,7 +61,7 @@ const clientErrorLogger = winston.createLogger({ })(), winston.format.json() ), - defaultMeta: { service: 'flashpoint-web-client' }, + defaultMeta: { service: 'dotcom-arcade-client' }, transports: [ new winston.transports.File({ filename: ERROR_LOG_FILE, diff --git a/backend/src/server.ts b/backend/src/server.ts index 244be37..4a0bfa4 100644 --- a/backend/src/server.ts +++ b/backend/src/server.ts @@ -225,7 +225,7 @@ async function startServer() { // pre-warm can run for minutes, and a closed port shows the user a connection // error instead of a page that explains itself. const server = app.listen(config.port, config.host, () => { - logger.info(`🚀 Flashpoint Web API server running on http://${config.host}:${config.port}`); + logger.info(`🚀 Dotcom Arcade server running on http://${config.host}:${config.port}`); logger.info(`📁 Flashpoint path: ${config.flashpointPath}`); logger.info(`🎮 Game content: /game-proxy/* and /game-zip/* (integrated)`); logger.info(`🌍 Environment: ${config.nodeEnv}`); diff --git a/backend/src/telemetry/otel.ts b/backend/src/telemetry/otel.ts index 978d788..f01425e 100644 --- a/backend/src/telemetry/otel.ts +++ b/backend/src/telemetry/otel.ts @@ -17,7 +17,7 @@ import { logger } from '../utils/logger'; * - OTEL_ENABLED: Enable/disable telemetry (true/false) * - OTEL_EXPORTER_OTLP_ENDPOINT: OTLP endpoint (e.g., http://localhost:4318) * - OTEL_API_KEY: API key for authentication (sent as "Authorization: Api-Key ") - * - OTEL_SERVICE_NAME: Service name (default: flashpoint-web-backend) + * - OTEL_SERVICE_NAME: Service name (default: dotcom-arcade-backend) * - OTEL_TRACES_ENABLED: Enable traces (default: true) * - OTEL_METRICS_ENABLED: Enable metrics (default: true) * - OTEL_METRICS_EXPORT_INTERVAL: Metrics export interval in ms (default: 60000) @@ -40,7 +40,7 @@ function getOtelConfig() { enabled: process.env.OTEL_ENABLED === 'true', endpoint: process.env.OTEL_EXPORTER_OTLP_ENDPOINT || 'http://localhost:4318', apiKey: process.env.OTEL_API_KEY || '', - serviceName: process.env.OTEL_SERVICE_NAME || 'flashpoint-web-backend', + serviceName: process.env.OTEL_SERVICE_NAME || 'dotcom-arcade-backend', serviceVersion: process.env.npm_package_version || '1.0.0', tracesEnabled: process.env.OTEL_TRACES_ENABLED !== 'false', metricsEnabled: process.env.OTEL_METRICS_ENABLED !== 'false', diff --git a/backend/src/utils/logger.ts b/backend/src/utils/logger.ts index a9e7276..c0b6e2b 100644 --- a/backend/src/utils/logger.ts +++ b/backend/src/utils/logger.ts @@ -154,7 +154,7 @@ export const logger = winston.createLogger({ otelFormat(), winston.format.json() ), - defaultMeta: { service: 'flashpoint-web-backend' }, + defaultMeta: { service: 'dotcom-arcade-backend' }, transports, }); diff --git a/frontend/index.html b/frontend/index.html index 43b6ad8..dba7bb5 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -21,7 +21,7 @@ form-action 'self'; " /> - Flashpoint Archive + Dotcom Arcade