1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-07 11:22:35 +01:00

get cdn endpoint from env

This commit is contained in:
Flam3rboy 2021-08-08 17:18:28 +02:00
parent 200479f135
commit a88767ead3

View File

@ -163,7 +163,7 @@ export class FosscordServer extends Server {
indexHTML
.replace(
/CDN_HOST: ".+"/,
`CDN_HOST: "${(Config.get().cdn.endpoint || "http://localhost:3003").replace(/https?:/, "")}"`
`CDN_HOST: "${(Config.get().cdn.endpoint || process.env.CDN || "http://localhost:3003").replace(/https?:/, "")}"`
)
.replace(
/GATEWAY_ENDPOINT: ".+"/,