Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Remove old cdn server

Smaug6739f7f337b8c8f6
diff --git a/backend/App.ts b/backend/App.ts
index e310d2ba..2203ec65 100644
--- a/backend/App.ts
+++ b/backend/App.ts
@@ -64,19 +64,6 @@ export class App {
public async start() {
this.handleMiddlewares();
await this.handleRoutes();
- const staticOptions = {
- dotfiles: 'ignore',
- etag: false,
- index: false,
- maxAge: '7d',
- redirect: false,
- setHeaders: function (res: Response) {
- res.set('x-timestamp', Date.now().toString());
- if (res.req.url.startsWith('/backups')) res.setHeader('Content-Disposition', `attachment; filename`);
- },
- };
- this.app.use('/static', express.static(this.config.upload_path, staticOptions));
-
this.app.listen(this.port, () => {
Logger.success(`Started on port ${this.port}`);
});