Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
This commit is contained in:
Joe Ma 2025-08-01 15:06:51 +08:00
parent 4542a4f519
commit 203a9e4982
No known key found for this signature in database
GPG key ID: 7A0ECF5F5EDC587F
3 changed files with 5 additions and 5 deletions

View file

@ -242,8 +242,8 @@
<td class="text-center col-6" id="paste_info_password">-</td> <td class="text-center col-6" id="paste_info_password">-</td>
</tr> </tr>
<tr> <tr>
<td class="text-center col-3 text-nowrap">Account Times</td> <td class="text-center col-3 text-nowrap">Access Times</td>
<td class="text-center col-6"><span id="paste_info_access_n">-</span> / <span id="paste_info_access_max_access_n">-</span></td> <td class="text-center col-6"><span id="paste_info_access_n">-</span> / <span id="paste_info_access_max_access_n">99999</span></td>
</tr> </tr>
<tr> <tr>
<td class="text-center col-3 text-nowrap">Created</td> <td class="text-center col-3 text-nowrap">Created</td>

View file

@ -359,7 +359,7 @@ router.get('/:uuid/:option?', async (request, env, ctx) => {
descriptor.access_n++; descriptor.access_n++;
ctx.waitUntil( ctx.waitUntil(
env.PASTE_INDEX.put(uuid, JSON.stringify(descriptor), { env.PASTE_INDEX.put(uuid, JSON.stringify(descriptor), {
expiration: descriptor.expired_at / 1000, expirationTtl: descriptor.expired_at / 1000,
}) })
); );
@ -383,7 +383,7 @@ router.get('/:uuid/:option?', async (request, env, ctx) => {
ctx.waitUntil( ctx.waitUntil(
env.PASTE_INDEX.put(uuid, JSON.stringify(descriptor), { env.PASTE_INDEX.put(uuid, JSON.stringify(descriptor), {
expiration: descriptor.expired_at / 1000, expirationTtl: descriptor.expired_at / 1000,
}) })
); );

View file

@ -10,7 +10,7 @@ services = [
] ]
[vars] [vars]
SERVICE_URL = "pb.nekoid.cc" SERVICE_URL = "https://pb.nekoid.cc"
PASTE_WEB_URL = "https://raw.githubusercontent.com/rikkaneko/paste/main/frontend" PASTE_WEB_URL = "https://raw.githubusercontent.com/rikkaneko/paste/main/frontend"
CORS_DOMAIN = "nekoid.cc" CORS_DOMAIN = "nekoid.cc"