ci: GHCR docker build for Lite branch + compose updates

- .github/workflows/docker-lite.yml: build & push ghcr.io/lezi-fun/
  forumlify-deploy:lite on Lite branch push (linux/amd64+arm64)
- docker-compose.yml: pull :lite image from GHCR, add PORT / ENABLE_
  CAPTCHA env, restart: unless-stopped on both services
This commit is contained in:
lezi-fun committed 2026-08-12 09:21:12 +08:00
1 parent 8f88f803f5
commit 9e407d0a2d
1532 files changed
+645187 -1

No files matched your search

@@ -0,0 +1,5 @@
module.exports=[54799,(e,t,r)=>{t.exports=e.x("crypto",()=>require("crypto"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},59043,(e,t,r)=>{t.exports=e.x("next/dist/server/runtime-reacts.external.js",()=>require("next/dist/server/runtime-reacts.external.js"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},81111,(e,t,r)=>{t.exports=e.x("node:stream",()=>require("node:stream"))},23862,e=>e.a(async(t,r)=>{try{var a=await e.y("pg-587764f78a6c7a9c");e.n(a),r()}catch(e){r(e)}},!0),80998,e=>e.a(async(t,r)=>{try{var a=e.i(23862),n=t([a]);[a]=n.then?(await n)():n;let s=!!process.env.VERCEL||!!process.env.AWS_LAMBDA_FUNCTION_NAME||!!process.env.CF_PAGES,o=new a.Pool({connectionString:process.env.DATABASE_URL||"postgresql://forumlify:123456@localhost:5432/forumlify",...s?{max:1,idleTimeoutMillis:5e3,connectionTimeoutMillis:1e4,maxUses:7500}:{}}),i=s?o:globalThis.__forumlifyPool||o;e.s(["default",0,i]),r()}catch(e){r(e)}},!1),24361,(e,t,r)=>{t.exports=e.x("util",()=>require("util"))},69587,e=>e.a(async(t,r)=>{try{var a=e.i(80998),n=e.i(71650),s=t([a,n]);async function o(e){let t=(0,n.getUser)(e),r=await (0,n.requireAdmin)(t);if(r)return r;try{let e=await a.default.query("SELECT id, name, title, content, enabled, created_at, updated_at FROM custom_pages ORDER BY created_at");return Response.json(e.rows)}catch{return Response.json({error:"服务器错误"},{status:500})}}async function i(e){let t=(0,n.getUser)(e);if(!t)return Response.json({error:"请先登录"},{status:401});let r=await (0,n.requireAdmin)(t);if(r)return r;let{name:s,title:o,content:i}=await e.json();if(!s||!o||!i)return Response.json({error:"请填写完整信息"},{status:400});if(!/^[a-zA-Z0-9\-_]+$/.test(s))return Response.json({error:"页面名称只允许字母、数字、短横线和下划线"},{status:400});try{let e=await a.default.query(`INSERT INTO custom_pages (name, title, content)
VALUES ($1, $2, $3)
RETURNING *`,[s,o,i]);return Response.json(e.rows[0])}catch(e){if("23505"===e.code)return Response.json({error:"页面名称已存在"},{status:400});return Response.json({error:"创建失败,请稍后重试"},{status:500})}}[a,n]=s.then?(await s)():s,e.s(["GET",0,o,"POST",0,i,"dynamic",0,"force-dynamic"]),r()}catch(e){r(e)}},!1),68925,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),s=e.i(61916),o=e.i(74677),i=e.i(69741),l=e.i(16795),u=e.i(87718),d=e.i(95169),c=e.i(47587),p=e.i(66012),h=e.i(70101),R=e.i(26937),m=e.i(10372),x=e.i(93695);e.i(52474);var v=e.i(220);let f=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/admin/custom-pages/route",pathname:"/api/admin/custom-pages",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/admin/custom-pages/route.js",nextConfigOutput:"",userland:()=>e.r(69587),...{}}),{workAsyncStorage:g,workUnitAsyncStorage:w,serverHooks:E}=f;async function y(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),f.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/admin/custom-pages/route";g=g.replace(/\/index$/,"")||"/";let w=await f.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:E,deploymentId:y,params:A,nextConfig:C,parsedUrl:T,isDraftMode:_,prerenderManifest:S,routerServerContext:q,isOnDemandRevalidate:b,revalidateOnlyGenerated:N,resolvedPathname:P,clientReferenceManifest:j,serverActionsManifest:O}=w,U=(0,i.normalizeAppPath)(g),I=!!(S.dynamicRoutes[U]||S.routes[P]),M=async()=>((null==q?void 0:q.render404)?await q.render404(e,t,T,!1):t.end("This page could not be found"),null);if(I&&!_){let e=!!S.routes[P],t=S.dynamicRoutes[U];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await M();throw new x.NoFallbackError}}let k=null;!I||f.isDev||_||(k="/index"===(k=P)?"/":k);let H=!0===f.isDev||!I,D=I&&!H;O&&j&&(0,o.setManifestsSingleton)({page:g,clientReferenceManifest:j,serverActionsManifest:O});let L=e.method||"GET",F=(0,s.getTracer)(),$=F.getActiveScopeSpan(),B=!!(null==q?void 0:q.isWrappedByNextServer),G=!!(0,n.getRequestMeta)(e,"minimalMode"),K=(0,n.getRequestMeta)(e,"incrementalCache")||await f.getIncrementalCache(e,C,S,G);null==K||K.resetRequestCache(),globalThis.__incrementalCache=K;let V={params:A,previewProps:S.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts,useCacheTimeout:C.experimental.useCacheTimeout},cacheComponents:!!C.cacheComponents,validationLevel:C.experimental.instantInsights.validationLevel,supportsDynamicResponse:H,incrementalCache:K,hmrRefreshHash:(0,n.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:C.cacheLife,staticPageGenerationTimeout:C.staticPageGenerationTimeout,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>f.onRequestError(e,t,a,n,q)},sharedContext:{buildId:E,deploymentId:y}},W=new l.NodeNextRequest(e),X=new l.NodeNextResponse(t),z=u.NextRequestAdapter.fromNodeNextRequest(W,(0,u.signalFromNodeResponse)(t)),Z=async({previousCacheEntry:r})=>{try{if(!G&&b&&N&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await f.handle(z,V);e.fetchMetrics=V.renderOpts.fetchMetrics;let s=V.renderOpts.pendingWaitUntil;s&&a.waitUntil&&(a.waitUntil(s),s=void 0);let o=V.renderOpts.collectedTags;if(!I)return await (0,p.sendResponse)(W,X,n,s),null;{let e=await n.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(n.headers);o&&(t[m.NEXT_CACHE_TAGS_HEADER]=o),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,a=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=m.INFINITE_CACHE?!1!==r&&r>0?C.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await f.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:b})},!1,q),t}},Y=async(n,o)=>{try{var i,l;let n=await f.handleResponse({req:e,nextConfig:C,cacheKey:k,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:S,isRoutePPREnabled:!1,isOnDemandRevalidate:b,revalidateOnlyGenerated:N,responseGenerator:Z,waitUntil:a.waitUntil,isMinimalMode:G});if(!I)return;if((null==n||null==(i=n.value)?void 0:i.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==n||null==(l=n.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});G||t. Line truncated
//# sourceMappingURL=%5Broot-of-the-server%5D__1t_8g8q._.js.map