diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-19 16:51:24 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-19 16:51:24 +1100 |
commit | 518fc966c9156f27124c595d8b371394b8f9b4a3 (patch) | |
tree | 40d087bc8439f9d647fcae82a88ae7dc23107aea /src/api/util/utility | |
parent | Make ConfigValue a directory, move defaults to those classes instead of a sep... (diff) | |
download | server-518fc966c9156f27124c595d8b371394b8f9b4a3.tar.xz |
Add additional config
Diffstat (limited to 'src/api/util/utility')
-rw-r--r-- | src/api/util/utility/EmbedHandlers.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/util/utility/EmbedHandlers.ts b/src/api/util/utility/EmbedHandlers.ts index a8738a4a..dca264d0 100644 --- a/src/api/util/utility/EmbedHandlers.ts +++ b/src/api/util/utility/EmbedHandlers.ts @@ -18,7 +18,7 @@ export const DEFAULT_FETCH_OPTIONS: any = { export const getProxyUrl = (url: URL, width: number, height: number): string => { const { resizeWidthMax, resizeHeightMax, imagorServerUrl } = Config.get().cdn; - const secret = Config.get().security.jwtSecret; // maybe shouldn't use this? + const secret = Config.get().security.requestSignature; width = Math.min(width || 500, resizeWidthMax || width); height = Math.min(height || 500, resizeHeightMax || width); |