hahahahahaHahahahahaHahahaHAHahAHAHAhhahahahaHahahahaAHAHAHAHAHAHAHA

This commit is contained in:
zkldi
2021-11-13 09:31:17 +00:00
parent e8c8c9e5af
commit 0a8ea0f202
+5 -5
View File
@@ -120,13 +120,13 @@ if (
`Running LOCAL_FILESYSTEM OWN_CDN in production. Consider making a separate process handle your CDN for performance.`,
{ bootInfo: true }
);
} else if (Environment.nodeEnv !== "test") {
logger.info(`Running own CDN at ${ServerConfig.CDN_CONFIG.SAVE_LOCATION.LOCATION}.`, {
bootInfo: true,
});
}
app.use("/cdn", express.static("/home/zkldi/Repos/Projects/Tachi/tachi-server/test-cdn"));
logger.info(`Running own CDN at ${ServerConfig.CDN_CONFIG.SAVE_LOCATION.LOCATION}.`, {
bootInfo: true,
});
app.use("/cdn", express.static(ServerConfig.CDN_CONFIG.SAVE_LOCATION.LOCATION));
app.get("/cdn/*", (req, res) => res.status(404).send("No content here."));
}