Add additional config

This commit is contained in:
Madeline committed 2022-12-19 16:51:24 +11:00
1 parent bc669ea9e1
commit d407d8ebe7
15 files changed
+53 -24

No files matched your search

+1 -1
View File
@@ -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);