Add additional config

This commit is contained in:
Madeline
2022-12-19 16:51:24 +11:00
parent bc669ea9e1
commit d407d8ebe7
15 changed files with 53 additions and 24 deletions
+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);