[addon] serves static videos from the addon

This commit is contained in:
TheBeastLT
2020-06-22 11:02:39 +02:00
parent 08de496403
commit 51329e19a8
7 changed files with 8 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ const serverless = require('./serverless');
const app = express();
app.use(express.static('static', { maxAge: '1y' }));
app.use((req, res, next) => serverless(req, res, next));
app.listen(process.env.PORT || 7000, () => {
console.log(`Started addon at: http://localhost:${process.env.PORT || 7000}`)

View File

@@ -1,8 +1,9 @@
// https://gofile.io/d/ZYlcAI
const RESOLVER_HOST = process.env.RESOLVER_HOST || 'http://localhost:7050';
module.exports = {
DOWNLOADING: 'https://srv-file9.gofile.io/download/ZYlcAI/downloaded.mp4',
FAILED_DOWNLOAD: 'https://srv-file9.gofile.io/download/ZYlcAI/download_failed.mp4',
FAILED_ACCESS: 'https://srv-file9.gofile.io/download/ZYlcAI/failed_access.mp4',
FAILED_RAR: 'https://srv-file9.gofile.io/download/ZYlcAI/failed_rar.mp4',
FAILED_UNEXPECTED: 'https://srv-file9.gofile.io/download/ZYlcAI/failed_unexpected.mp4'
DOWNLOADING: `${RESOLVER_HOST}/videos/download_failed_v1.mp4`,
FAILED_DOWNLOAD: `${RESOLVER_HOST}/videos/downloaded_v1.mp4`,
FAILED_ACCESS: `${RESOLVER_HOST}/videos/failed_access_v1.mp4`,
FAILED_RAR: `${RESOLVER_HOST}/videos/failed_rar_v1.mp4`,
FAILED_UNEXPECTED: `${RESOLVER_HOST}/videos/failed_unexpected_v1.mp4`
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.