chore (backend): set proxyRemoteFiles to true by default (close #9426)
This commit is contained in:
parent
38192052c9
commit
fd333250c9
2 changed files with 2 additions and 1 deletions
|
@ -178,7 +178,7 @@ logLevel: [
|
||||||
# Media Proxy
|
# Media Proxy
|
||||||
#mediaProxy: https://example.com/proxy
|
#mediaProxy: https://example.com/proxy
|
||||||
|
|
||||||
# Proxy remote files (default: false)
|
# Proxy remote files (default: true)
|
||||||
#proxyRemoteFiles: true
|
#proxyRemoteFiles: true
|
||||||
|
|
||||||
#allowedPrivateNetworks: [
|
#allowedPrivateNetworks: [
|
||||||
|
|
|
@ -55,6 +55,7 @@ export default function load() {
|
||||||
mixin.userAgent = `Firefish/${meta.version} (${config.url})`;
|
mixin.userAgent = `Firefish/${meta.version} (${config.url})`;
|
||||||
mixin.clientEntry = clientManifest["src/init.ts"];
|
mixin.clientEntry = clientManifest["src/init.ts"];
|
||||||
|
|
||||||
|
if (config.proxyRemoteFiles == null) config.proxyRemoteFiles = true;
|
||||||
if (!config.redis.prefix) config.redis.prefix = mixin.hostname;
|
if (!config.redis.prefix) config.redis.prefix = mixin.hostname;
|
||||||
if (config.cacheServer && !config.cacheServer.prefix)
|
if (config.cacheServer && !config.cacheServer.prefix)
|
||||||
config.cacheServer.prefix = mixin.hostname;
|
config.cacheServer.prefix = mixin.hostname;
|
||||||
|
|
Loading…
Reference in a new issue