This commit is contained in:
cupcakearmy 2022-10-18 13:58:37 +02:00
parent 0fc63ed17d
commit 008d1c949d
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F
5 changed files with 218 additions and 290 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@ dist
assets
*.tsbuildinfo
data
demo
.vscode
# Configs

View File

@ -26,7 +26,7 @@ The heavy lifting is done by [`libvips`](https://github.com/libvips/libvips) and
- Multiple storage adapters (Local, Minio, S3, GCP)
- Auto format based on `Accept` header
- ETag caching
- Presets and optinal forcing of presets
- Presets and optional forcing of presets
## 🏗 Installation

View File

@ -20,12 +20,12 @@
"@types/convict": "^6.1.1",
"@types/flat": "^5.0.2",
"@types/js-yaml": "^4.0.5",
"@types/minio": "^7.0.13",
"@types/minio": "^7.0.14",
"@types/ms": "^0.7.31",
"@types/node": "^16.11.36",
"@types/node": "^16.11.66",
"@types/sharp": "^0.29.5",
"ts-node-dev": "^2.0.0",
"typescript": "^4.7.2"
"typescript": "^4.8.4"
},
"dependencies": {
"@fastify/caching": "^7.0.0",
@ -36,13 +36,13 @@
"convict": "^6.2.3",
"convict-format-with-validator": "^6.2.0",
"fast-crc32c": "^2.0.0",
"fastify": "^3.29.0",
"fastify": "^3.29.3",
"flat": "^5.0.2",
"js-yaml": "^4.1.0",
"minio": "^7.0.28",
"minio": "^7.0.32",
"ms": "^2.1.3",
"pino-pretty": "^7.6.1",
"sharp": "^0.29.3",
"sharp": "^0.31.1",
"under-pressure": "^5.8.1"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -103,7 +103,7 @@ export const config = convict({
maxAge: {
doc: 'The maximum age of a cached image',
format: String,
default: '1d',
default: '90d',
env: 'MAX_AGE',
},