修改版本和图片域名转换
This commit is contained in:
@@ -264,7 +264,7 @@ const init = {
|
||||
`ALTER TABLE setting ADD COLUMN site_key TEXT;`,
|
||||
`ALTER TABLE setting ADD COLUMN secret_key TEXT;`,
|
||||
`ALTER TABLE setting ADD COLUMN background TEXT;`,
|
||||
`ALTER TABLE setting ADD COLUMN login_opacity INTEGER NOT NULL DEFAULT 0.80;`,
|
||||
`ALTER TABLE setting ADD COLUMN login_opacity INTEGER NOT NULL DEFAULT 0.88;`,
|
||||
|
||||
`ALTER TABLE user ADD COLUMN create_ip TEXT;`,
|
||||
`ALTER TABLE user ADD COLUMN active_ip TEXT;`,
|
||||
|
||||
@@ -22,7 +22,7 @@ const attService = {
|
||||
metadate.contentDisposition = `attachment; filename="${attachment.filename}"`
|
||||
} else {
|
||||
metadate.contentDisposition = `inline; filename="${attachment.filename}"`
|
||||
metadate.cacheControl = `max-age=604800`
|
||||
metadate.cacheControl = `max-age=259200`
|
||||
}
|
||||
|
||||
await r2Service.putObj(c, attachment.key, attachment.content, metadate);
|
||||
@@ -119,7 +119,7 @@ const attService = {
|
||||
attData.type = attConst.type.EMBED;
|
||||
await r2Service.putObj(c, attData.key, attData.buff, {
|
||||
contentType: attData.mimeType,
|
||||
cacheControl: `max-age=604800`,
|
||||
cacheControl: `max-age=259200`,
|
||||
contentDisposition: `inline; filename="${attData.filename}"`
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user