fix: middleware publicPaths /api/internal + Dockerfile sqlite3
This commit is contained in:
parent
c179e47c6b
commit
d64c950894
|
|
@ -33,6 +33,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
libasound2 \
|
libasound2 \
|
||||||
libpango-1.0-0 \
|
libpango-1.0-0 \
|
||||||
libcairo2 \
|
libcairo2 \
|
||||||
|
sqlite3 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=builder /app/package.json /app/package-lock.json ./
|
COPY --from=builder /app/package.json /app/package-lock.json ./
|
||||||
COPY --from=builder /app/.next/standalone ./
|
COPY --from=builder /app/.next/standalone ./
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,9 @@ const cookieDomain = process.env.COOKIE_DOMAIN || '.tlyq.ai'
|
||||||
export const middleware = createMiddlewareV2({
|
export const middleware = createMiddlewareV2({
|
||||||
jwtSecret,
|
jwtSecret,
|
||||||
cookieDomain,
|
cookieDomain,
|
||||||
allowedIssuers: ['*'], // 迁移模式
|
allowedIssuers: ['*'],
|
||||||
enableApiKey: true,
|
enableApiKey: true,
|
||||||
|
publicPaths: ['/login', '/api/auth', '/api/health', '/api/internal', '/_next', '/favicon.ico'],
|
||||||
})
|
})
|
||||||
|
|
||||||
export const config = {
|
export const config = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue