Merged v1.0.0 into feature-download-zip

This commit is contained in:
Christoph Wiechert
2017-05-07 22:45:04 +02:00
14 changed files with 109 additions and 29 deletions

View File

@@ -19,7 +19,7 @@ module.exports = class DB {
for (sid of Object.keys(this.db)) {
for (f of this.db[sid]) {
// no removal of one-time downloads
if(!Number.isInteger(f.metadata.retention)) return;
if(!Number.isInteger(+f.metadata.retention)) return;
expires = (+f.metadata.createdAt) + (+f.metadata.retention * 1000) - Date.now();
if(expires <= 0) {

View File

@@ -34,6 +34,10 @@ if(config.accessLog) {
app.use('/app', express.static(path.join(__dirname, '../public/app')));
app.use('/assets', express.static(path.join(__dirname, '../public/assets')));
// robots.txt
app.get('/robots.txt', (req, res) => {
res.sendFile(path.join(__dirname, '../public/robots.txt'));
});
// Upload App
app.get('/', (req, res) => {