From 8f7aeb88b79feeefd6f526bea4818e3f981ed0c7 Mon Sep 17 00:00:00 2001 From: Dorian Date: Wed, 6 May 2026 16:33:01 +0100 Subject: [PATCH] chore: serve everything on port 1337 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User-facing port unified at 1337 — vibes-aligned and easier to remember than 8080/8420. Updates: api default PORT, .env.example, docker-compose mapping (1337:1337), healthcheck target, Dockerfile EXPOSE, Vite dev proxy. Co-Authored-By: Claude Opus 4.7 (1M context) --- .env.example | 2 +- Dockerfile | 2 +- apps/api/src/config.ts | 2 +- apps/web/vite.config.ts | 4 ++-- docker-compose.yml | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.env.example b/.env.example index 550a883..40861b6 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,7 @@ # Copy to .env (or set in Portainer stack env) and fill in values. # ---- Server ---- -PORT=8080 +PORT=1337 NODE_ENV=production LOG_LEVEL=info # Origin allowed by CORS. Leave unset to disable CORS entirely (single-origin diff --git a/Dockerfile b/Dockerfile index 6761c24..c24bc37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,6 @@ COPY --from=build-api /app/apps/api/dist apps/api/dist COPY --from=build-web /app/apps/web/dist apps/api/public USER node -EXPOSE 8080 +EXPOSE 1337 ENTRYPOINT ["/sbin/tini", "--"] CMD ["node", "apps/api/dist/index.js"] diff --git a/apps/api/src/config.ts b/apps/api/src/config.ts index 9741830..e6876c7 100644 --- a/apps/api/src/config.ts +++ b/apps/api/src/config.ts @@ -2,7 +2,7 @@ import { nip19 } from "nostr-tools"; import { z } from "zod"; const RawEnv = z.object({ - PORT: z.coerce.number().int().min(1).max(65535).default(8080), + PORT: z.coerce.number().int().min(1).max(65535).default(1337), NODE_ENV: z.enum(["development", "production", "test"]).default("production"), LOG_LEVEL: z .enum(["fatal", "error", "warn", "info", "debug", "trace", "silent"]) diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index cf53b63..29ffedc 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -7,10 +7,10 @@ export default defineConfig({ port: 5173, proxy: { "/api": { - target: "http://localhost:8080", + target: "http://localhost:1337", changeOrigin: true, }, - "/healthz": "http://localhost:8080", + "/healthz": "http://localhost:1337", }, }, build: { diff --git a/docker-compose.yml b/docker-compose.yml index 2396925..74f8f9b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,9 +28,9 @@ services: JWT_SECRET: "${JWT_SECRET?must be set}" JWT_TTL_SECONDS: "${JWT_TTL_SECONDS:-86400}" ports: - - "1337:8080" + - "1337:1337" healthcheck: - test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8080/healthz"] + test: ["CMD", "wget", "-qO-", "http://127.0.0.1:1337/healthz"] interval: 30s timeout: 5s retries: 3