mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix collaboration of Nextcloud integration
This commit is contained in:
parent
84e254d86e
commit
58331b067d
@ -272,9 +272,18 @@ app.get(mainPagePattern, Express.static('./customize.dist'));
|
||||
app.use("/blob", Express.static(Path.resolve(Env.paths.blob), {
|
||||
maxAge: Env.DEV_MODE? "0d": "365d"
|
||||
}));
|
||||
app.head("/datastore", Express.static(Env.paths.data, {
|
||||
maxAge: "0d"
|
||||
}));
|
||||
app.use("/datastore",
|
||||
(req, res, next) => {
|
||||
if (req.method === 'HEAD') {
|
||||
next();
|
||||
} else {
|
||||
res.status(403).end();
|
||||
}
|
||||
},
|
||||
Express.static(Env.paths.data, {
|
||||
maxAge: "0d"
|
||||
}
|
||||
));
|
||||
|
||||
app.use('/block/', function (req, res, next) {
|
||||
var parsed = Path.parse(req.url);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user