mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: make port 1349 the UI port in all modes
Dev mode: Vite serves UI on 1349, Fastify API on 1350 (proxied) Production/Docker: Fastify serves both UI and API on 1349
This commit is contained in:
@@ -43,7 +43,7 @@ await app.register(swagger, {
|
||||
description: "API for Stirling Image — self-hosted image processing suite",
|
||||
version: APP_VERSION,
|
||||
},
|
||||
servers: [{ url: `http://localhost:${env.PORT}` }],
|
||||
servers: [{ url: `http://localhost:1349` }],
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { z } from "zod";
|
||||
|
||||
const envSchema = z.object({
|
||||
PORT: z.coerce.number().default(1349),
|
||||
PORT: z.coerce.number().default(1350),
|
||||
AUTH_ENABLED: z
|
||||
.enum(["true", "false"])
|
||||
.default("true")
|
||||
|
||||
Reference in New Issue
Block a user