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:
1 parent
8f88f803f5
commit
9e407d0a2d
1532 files changed
+645187
-1
No files matched your search
@@ -0,0 +1,3 @@
|
||||
module.exports=[874,(e,r,t)=>{r.exports=e.x("buffer",()=>require("buffer"))},23469,(e,r,t)=>{var s=e.r(874),i=s.Buffer;function n(e,r){for(var t in e)r[t]=e[t]}function o(e,r,t){return i(e,r,t)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?r.exports=s:(n(s,t),t.Buffer=o),o.prototype=Object.create(i.prototype),n(i,o),o.from=function(e,r,t){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,r,t)},o.alloc=function(e,r,t){if("number"!=typeof e)throw TypeError("Argument must be a number");var s=i(e);return void 0!==r?"string"==typeof t?s.fill(r,t):s.fill(r):s.fill(0),s},o.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return s.SlowBuffer(e)}},88947,(e,r,t)=>{r.exports=e.x("stream",()=>require("stream"))},71650,e=>e.a(async(r,t)=>{try{var s=e.i(24652),i=e.i(80998),n=r([i]);[i]=n.then?(await n)():n;let l=process.env.JWT_SECRET||"forumlify-secret-key-change-me-in-production";async function o(e){if(!e)return Response.json({error:"请先登录"},{status:401});try{let r=await i.default.query("SELECT role FROM users WHERE id = $1",[e.id]);if(r.rows[0]?.role!=="admin")return Response.json({error:"需要管理员权限"},{status:403});return null}catch{return Response.json({error:"服务器错误"},{status:500})}}async function a(e){try{let r=await i.default.query("SELECT id FROM users ORDER BY created_at ASC, id ASC LIMIT 1");return r.rows.length>0&&r.rows[0].id===e}catch{return!1}}e.s(["JWT_SECRET",0,l,"getUser",0,function(e){let r=(e.headers.get("authorization")||"").split(" ")[1];if(!r)return null;try{return s.default.verify(r,l)}catch{return null}},"isFirstUser",0,a,"requireAdmin",0,o]),t()}catch(e){t(e)}},!1),65880,(e,r,t)=>{"use strict";function s(e){return(e/8|0)+ +(e%8!=0)}var i={ES256:s(256),ES384:s(384),ES512:s(521)};r.exports=function(e){var r=i[e];if(r)return r;throw Error('Unknown algorithm "'+e+'"')}},32955,(e,r,t)=>{"use strict";var s=e.r(23469).Buffer,i=e.r(65880);function n(e){if(s.isBuffer(e))return e;if("string"==typeof e)return s.from(e,"base64");throw TypeError("ECDSA signature must be a Base64 string or a Buffer")}function o(e,r,t){for(var s=0;r+s<t&&0===e[r+s];)++s;return e[r+s]>=128&&--s,s}r.exports={derToJose:function(e,r){e=n(e);var t=i(r),o=t+1,a=e.length,l=0;if(48!==e[l++])throw Error('Could not find expected "seq"');var u=e[l++];if(129===u&&(u=e[l++]),a-l<u)throw Error('"seq" specified length of "'+u+'", only "'+(a-l)+'" remaining');if(2!==e[l++])throw Error('Could not find expected "int" for "r"');var c=e[l++];if(a-l-2<c)throw Error('"r" specified length of "'+c+'", only "'+(a-l-2)+'" available');if(o<c)throw Error('"r" specified length of "'+c+'", max of "'+o+'" is acceptable');var f=l;if(l+=c,2!==e[l++])throw Error('Could not find expected "int" for "s"');var p=e[l++];if(a-l!==p)throw Error('"s" specified length of "'+p+'", expected "'+(a-l)+'"');if(o<p)throw Error('"s" specified length of "'+p+'", max of "'+o+'" is acceptable');var h=l;if((l+=p)!==a)throw Error('Expected to consume entire buffer, but "'+(a-l)+'" bytes remain');var m=t-c,E=t-p,d=s.allocUnsafe(m+c+E+p);for(l=0;l<m;++l)d[l]=0;e.copy(d,l,f+Math.max(-m,0),f+c),l=t;for(var y=l;l<y+E;++l)d[l]=0;return e.copy(d,l,h+Math.max(-E,0),h+p),d=(d=d.toString("base64")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},joseToDer:function(e,r){e=n(e);var t=i(r),a=e.length;if(a!==2*t)throw TypeError('"'+r+'" signatures must be "'+2*t+'" bytes, saw "'+a+'"');var l=o(e,0,t),u=o(e,t,e.length),c=t-l,f=t-u,p=2+c+1+1+f,h=p<128,m=s.allocUnsafe((h?2:3)+p),E=0;return m[E++]=48,h?m[E++]=p:(m[E++]=129,m[E++]=255&p),m[E++]=2,m[E++]=c,l<0?(m[E++]=0,E+=e.copy(m,E,0,t)):E+=e.copy(m,E,l,t),m[E++]=2,m[E++]=f,u<0?(m[E++]=0,e.copy(m,E,t)):e.copy(m,E,t+u),m}}},22691,(e,r,t)=>{"use strict";var s=e.r(874).Buffer,i=e.r(874).SlowBuffer;function n(e,r){if(!s.isBuffer(e)||!s.isBuffer(r)||e.length!==r.length)return!1;for(var t=0,i=0;i<e.length;i++)t|=e[i]^r[i];return 0===t}r.exports=n,n.install=function(){s.prototype.equal=i.prototype.equal=function(e){return n(this,e)}};var o=s.prototype.equal,a=i.prototype.equal;n.restore=function(){s.prototype.equal=o,i.prototype.equal=a}},57067,(e,r,t)=>{var s,i=e.r(23469).Buffer,n=e.r(54799),o=e.r(32955),a=e.r(24361),l="secret must be a string or buffer",u="key must be a string or a buffer",c="function"==typeof n.createPublicKey;function f(e){if(!i.isBuffer(e)&&"string"!=typeof e&&(!c||"object"!=typeof e||"string"!=typeof e.type||"string"!=typeof e.asymmetricKeyType||"function"!=typeof e.export))throw E(u)}function p(e){if(!i.isBuffer(e)&&"string"!=typeof e&&"object"!=typeof e)throw E("key must be a string, a buffer or an object")}function h(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function m(e){var r=4-(e=e.toString()).length%4;if(4!==r)for(var t=0;t<r;++t)e+="=";return e.replace(/\-/g,"+").replace(/_/g,"/")}Line truncated
|
||||
|
||||
//# sourceMappingURL=%5Broot-of-the-server%5D__18tmvyz._.js.map
|
||||
Reference in new issue
Block a user