diff --git a/addon/index.js b/addon/index.js index 31357aa..907fc44 100644 --- a/addon/index.js +++ b/addon/index.js @@ -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}`) diff --git a/addon/moch/static.js b/addon/moch/static.js index 4ef6b14..1e718e8 100644 --- a/addon/moch/static.js +++ b/addon/moch/static.js @@ -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` } \ No newline at end of file diff --git a/addon/static/videos/download_failed_v1.mp4 b/addon/static/videos/download_failed_v1.mp4 new file mode 100644 index 0000000..c9b7108 Binary files /dev/null and b/addon/static/videos/download_failed_v1.mp4 differ diff --git a/addon/static/videos/downloaded_v1.mp4 b/addon/static/videos/downloaded_v1.mp4 new file mode 100644 index 0000000..b9226d4 Binary files /dev/null and b/addon/static/videos/downloaded_v1.mp4 differ diff --git a/addon/static/videos/failed_access_v1.mp4 b/addon/static/videos/failed_access_v1.mp4 new file mode 100644 index 0000000..ebdce68 Binary files /dev/null and b/addon/static/videos/failed_access_v1.mp4 differ diff --git a/addon/static/videos/failed_rar_v1.mp4 b/addon/static/videos/failed_rar_v1.mp4 new file mode 100644 index 0000000..ae61805 Binary files /dev/null and b/addon/static/videos/failed_rar_v1.mp4 differ diff --git a/addon/static/videos/failed_unexpected_v1.mp4 b/addon/static/videos/failed_unexpected_v1.mp4 new file mode 100644 index 0000000..b3fb6b5 Binary files /dev/null and b/addon/static/videos/failed_unexpected_v1.mp4 differ