summary refs log tree commit diff
path: root/src/cdn
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-26 14:30:34 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-26 14:30:34 +1100
commite98cdfbce0a2cda9b18a98b4ccfbf83d4c77ed56 (patch)
tree2b1efab39f62cf61200ff59d88bf45079cda50e1 /src/cdn
parentFix SIGTERM handler not disconnecting gateway clients and leaving timeouts ac... (diff)
parentalso don't use 3002 as default when gateway endpoints are null (diff)
downloadserver-e98cdfbce0a2cda9b18a98b4ccfbf83d4c77ed56.tar.xz
Merge branch 'master' of github.com:fosscord/fosscord-server
Diffstat (limited to '')
-rw-r--r--src/cdn/routes/attachments.ts2
-rw-r--r--src/cdn/routes/avatars.ts2
-rw-r--r--src/cdn/routes/guild-profiles.ts2
-rw-r--r--src/cdn/routes/role-icons.ts2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/cdn/routes/attachments.ts b/src/cdn/routes/attachments.ts

index d7764bd7..398a243f 100644 --- a/src/cdn/routes/attachments.ts +++ b/src/cdn/routes/attachments.ts
@@ -50,7 +50,7 @@ router.post( const path = `attachments/${channel_id}/${id}/${filename}`; const endpoint = - Config.get()?.cdn.endpointPublic || "http://localhost:3003"; + Config.get()?.cdn.endpointPublic || "http://localhost:3001"; await storage.set(path, buffer); let width; diff --git a/src/cdn/routes/avatars.ts b/src/cdn/routes/avatars.ts
index 2c078c29..7dc23d60 100644 --- a/src/cdn/routes/avatars.ts +++ b/src/cdn/routes/avatars.ts
@@ -63,7 +63,7 @@ router.post( const path = `avatars/${user_id}/${hash}`; const endpoint = - Config.get().cdn.endpointPublic || "http://localhost:3003"; + Config.get().cdn.endpointPublic || "http://localhost:3001"; await storage.set(path, buffer); diff --git a/src/cdn/routes/guild-profiles.ts b/src/cdn/routes/guild-profiles.ts
index a02d152c..ae8786ae 100644 --- a/src/cdn/routes/guild-profiles.ts +++ b/src/cdn/routes/guild-profiles.ts
@@ -59,7 +59,7 @@ router.post("/", multer.single("file"), async (req: Request, res: Response) => { if (ANIMATED_MIME_TYPES.includes(type.mime)) hash = `a_${hash}`; // animated icons have a_ infront of the hash const path = `guilds/${guild_id}/users/${user_id}/avatars/${hash}`; - const endpoint = Config.get().cdn.endpointPublic || "http://localhost:3003"; + const endpoint = Config.get().cdn.endpointPublic || "http://localhost:3001"; await storage.set(path, buffer); diff --git a/src/cdn/routes/role-icons.ts b/src/cdn/routes/role-icons.ts
index c3ad51c1..8f10ab78 100644 --- a/src/cdn/routes/role-icons.ts +++ b/src/cdn/routes/role-icons.ts
@@ -62,7 +62,7 @@ router.post( const path = `role-icons/${role_id}/${hash}.png`; const endpoint = - Config.get().cdn.endpointPublic || "http://localhost:3003"; + Config.get().cdn.endpointPublic || "http://localhost:3001"; await storage.set(path, buffer);