mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2026-03-01 18:31:35 +00:00
New constants/config merge system
This commit is contained in:
parent
fb6081a719
commit
cf8fd6b86b
8 changed files with 43 additions and 9 deletions
|
|
@ -33,7 +33,7 @@ module.exports = [
|
|||
statusCode: 200,
|
||||
contentType: "image/jpeg",
|
||||
headers: {
|
||||
"Cache-Control": constants.image_cache_control
|
||||
"Cache-Control": constants.caching.image_cache_control
|
||||
},
|
||||
stream: image.stream("jpg")
|
||||
}
|
||||
|
|
@ -54,7 +54,7 @@ module.exports = [
|
|||
})
|
||||
} else {
|
||||
return proxy(url, {
|
||||
"Cache-Control": constants.image_cache_control
|
||||
"Cache-Control": constants.caching.image_cache_control
|
||||
})
|
||||
}
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
const {instance, pugCache, wss} = require("./passthrough")
|
||||
const {requestCache, timelineEntryCache} = require("../lib/collectors")
|
||||
const constants = require("../lib/constants")
|
||||
const util = require("util")
|
||||
const repl = require("repl")
|
||||
const vm = require("vm")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue