chore: serve everything on port 1337
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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"])
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user