forked from FoundKeyGang/FoundKey
add config for error images
Changelog: Added
This commit is contained in:
parent
21069223e3
commit
ae6ba05306
3 changed files with 19 additions and 0 deletions
|
@ -133,3 +133,10 @@ redis:
|
||||||
#allowedPrivateNetworks: [
|
#allowedPrivateNetworks: [
|
||||||
# '127.0.0.1/32'
|
# '127.0.0.1/32'
|
||||||
#]
|
#]
|
||||||
|
|
||||||
|
# images used on error screens. You can use absolute or relative URLs.
|
||||||
|
# If you use relative URLs, be aware that the URL may be used on different pages/paths, so the path component should be absolute.
|
||||||
|
#images:
|
||||||
|
# info: /twemoji/1f440.svg
|
||||||
|
# notFound: /twemoji/2049.svg
|
||||||
|
# error: /twemoji/1f480.svg
|
||||||
|
|
|
@ -38,6 +38,12 @@ export default function load(): Config {
|
||||||
|
|
||||||
config.port = config.port || parseInt(process.env.PORT || '', 10);
|
config.port = config.port || parseInt(process.env.PORT || '', 10);
|
||||||
|
|
||||||
|
config.images = Object.assign({
|
||||||
|
info: '/twemoji/1f440.svg',
|
||||||
|
notFound: '/twemoji/2040.svg',
|
||||||
|
error: '/twemoji/1f480.svg',
|
||||||
|
}, config.images ?? {});
|
||||||
|
|
||||||
if (!config.maxNoteTextLength) config.maxNoteTextLength = 3000;
|
if (!config.maxNoteTextLength) config.maxNoteTextLength = 3000;
|
||||||
|
|
||||||
mixin.version = meta.version;
|
mixin.version = meta.version;
|
||||||
|
|
|
@ -67,6 +67,12 @@ export type Source = {
|
||||||
mediaProxy?: string;
|
mediaProxy?: string;
|
||||||
proxyRemoteFiles?: boolean;
|
proxyRemoteFiles?: boolean;
|
||||||
internalStoragePath?: string;
|
internalStoragePath?: string;
|
||||||
|
|
||||||
|
images?: {
|
||||||
|
info?: string;
|
||||||
|
notFound?: string;
|
||||||
|
error?: string;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue