adds docker deployment

This commit is contained in:
TheBeastLT
2020-03-26 18:34:29 +01:00
parent 0e802c74d2
commit 6244208ed6
6 changed files with 63 additions and 46 deletions

View File

@@ -1,28 +1,16 @@
{
"version": 2,
"builds": [
{
"src": "/addon/**/*.js",
"use": "@now/node"
}
],
"routes": [
{
"src": "/static/(.*)",
"dest": "/addon/static/$1"
},
{
"src": "/(.*)",
"dest": "/addon/serverless.js"
"status": 308,
"headers": {
"Location": "https://torrentio.strem.fun/$1"
}
}
],
"github": {
"silent": true
},
"env": {
"MONGODB_URI": "@mongodb-uri",
"DATABASE_URI": "@database-uri",
"RESOLVER_HOST": "@torrentio-resolver-host"
}
}