This commit is contained in:
parent
0aa86587c3
commit
39f4448674
|
|
@ -61,7 +61,7 @@ RUN chmod +x /plugai/wrapper.sh
|
|||
|
||||
RUN rm -rf /root/.npm /root/.pnpm-store /tmp/*
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=25s --retries=3 CMD curl -fs http://localhost:3008/api/health || exit 1
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=25s --retries=3 CMD curl -fs http://localhost:3008/api/health/ || exit 1
|
||||
|
||||
EXPOSE 3008
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
import { NextResponse } from 'next/server'
|
||||
import { getRuntimeEnv } from '@/lib/ipconfig' // 路径按你项目实际调整
|
||||
|
||||
export const runtime = 'nodejs'
|
||||
|
||||
export async function GET() {
|
||||
let ip: string | null = null
|
||||
let res: string | undefined = undefined
|
||||
|
|
|
|||
Loading…
Reference in New Issue