mirror of
https://codeberg.org/teddit/teddit
synced 2025-01-24 16:30:46 +01:00
fix the default config.cache_control_interval to 24 hours instead of 30 minutes
This commit is contained in:
parent
d895e400ef
commit
30d0000dca
@ -33,7 +33,7 @@ const config = {
|
||||
? (JSON.parse(process.env.DOMAIN_REPLACEMENTS).map(([p, r]) => [new RegExp(p, 'gm'), r]))
|
||||
: [], // Replacements for domains in outgoing links. Tuples with regular expressions to match, and replacement values. This is in addition to user-level configuration of privacyDomains.
|
||||
cache_control: process.env.CACHE_CONTROL !== 'true' || true, // If true, teddit will automatically try to keep the size of the cache directory (static) under config.cache_max_size. By default this is set to true.
|
||||
cache_control_interval: process.env.CACHE_CONTROL_INTERVAL || 1000 * 60 * 30, // How often the cached static directory is emptied. Default is every 24 hours minutes.
|
||||
cache_control_interval: process.env.CACHE_CONTROL_INTERVAL || 1000 * 60 * 60 * 24, // How often the cached static directory is emptied. Default is every 24 hours minutes.
|
||||
post_media_max_heights: {
|
||||
/**
|
||||
* Sets the max-height value for images and videos in posts.
|
||||
|
Loading…
Reference in New Issue
Block a user