parent
c70873d9c8
commit
7efe082554
|
|
@ -2,7 +2,7 @@ FROM keymetrics/pm2:8-alpine
|
|||
ENV NODE_ENV production
|
||||
WORKDIR /usr/src/app
|
||||
COPY ["package.json", "./"]
|
||||
RUN yarn --prod -s && mv node_modules ../
|
||||
RUN yarn --ignore-engines --prod -s && mv node_modules ../
|
||||
COPY . .
|
||||
EXPOSE 1200
|
||||
CMD pm2-runtime start process.json
|
||||
CMD pm2-runtime start process.json
|
||||
|
|
|
|||
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"name": "RSSHub",
|
||||
"description": "Connect the world with RSS",
|
||||
"repository": "https://github.com/DIYgod/RSSHub",
|
||||
"website": "https://rsshub.js.org/",
|
||||
"logo": "https://i.imgur.com/NZpRScX.png",
|
||||
"keywords": ["RSS"],
|
||||
"env": {
|
||||
"PORT": {
|
||||
"value": "80",
|
||||
"required": false
|
||||
},
|
||||
"PIXIV_USERNAME": {
|
||||
"required": false
|
||||
},
|
||||
"PIXIV_PASSWORD": {
|
||||
"required": false
|
||||
},
|
||||
"DISQUS_API_KEY": {
|
||||
"required": false
|
||||
},
|
||||
"TWITTER_CONSUMER_KEY": {
|
||||
"required": false
|
||||
},
|
||||
"TWITTER_CONSUMER_SECRET": {
|
||||
"required": false
|
||||
},
|
||||
"TWITTER_ACCESS_TOKEN": {
|
||||
"required": false
|
||||
},
|
||||
"TWITTER_ACCESS_TOKEN_SECRET": {
|
||||
"required": false
|
||||
},
|
||||
"YOUTUBE_KEY": {
|
||||
"required": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
module.exports = {
|
||||
port: 1200,
|
||||
port: process.env.PORT || 1200,
|
||||
cacheType: 'memory', // support memory and redis, set empty to disable cache
|
||||
cacheExpire: 5 * 60,
|
||||
ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36',
|
||||
|
|
@ -21,4 +21,4 @@ module.exports = {
|
|||
youtube: {
|
||||
key: process.env.YOUTUBE_KEY
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -30,4 +30,8 @@
|
|||
|
||||
`twitter`: [申请地址](https://apps.twitter.com)
|
||||
|
||||
`youtube`: [申请地址](https://console.developers.google.com/)
|
||||
`youtube`: [申请地址](https://console.developers.google.com/)
|
||||
|
||||
## 部署到 Heroku
|
||||
[](https://heroku.com/deploy)
|
||||
|
||||
|
|
|
|||
|
|
@ -41,5 +41,8 @@
|
|||
"readall": "1.0.0",
|
||||
"twit": "2.2.9",
|
||||
"winston": "3.0.0-rc3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue