Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/baohaoyu/oos_blog_server
koa2搭建的hexo博客,配有上传到阿里云OOS接口
https://github.com/baohaoyu/oos_blog_server
aliyun aliyun-oss hexo koa2
Last synced: about 1 month ago
JSON representation
koa2搭建的hexo博客,配有上传到阿里云OOS接口
- Host: GitHub
- URL: https://github.com/baohaoyu/oos_blog_server
- Owner: BaoHaoYu
- Created: 2019-10-12T06:24:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T14:45:51.000Z (about 2 years ago)
- Last Synced: 2023-03-02T22:16:47.667Z (almost 2 years ago)
- Topics: aliyun, aliyun-oss, hexo, koa2
- Language: TypeScript
- Size: 339 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# koa2博客服务
## 安装
按顺序执行如下命令
```bash
git clone https://github.com/BaoHaoYu/oos_blog_server.git
cd oos_blog_server
yarn
```## 配置config.ts
```ts
export default {
// 端口
port: '9000',
// blog静态目录
blogPublic: '/opt/www/hexo-blog/public',
// 域名
region: '',
// 阿里云accessKeyId
accessKeyId: '',
// 阿里云accessKeySecret
accessKeySecret: '',
}
```region
![](http://bhyblog.oss-cn-shenzhen.aliyuncs.com/hexo/chrome_qtiqWEFZDi.png)accessKeyId和accessKeySecret
![](http://bhyblog.oss-cn-shenzhen.aliyuncs.com/hexo/chrome_vOVtY39Be9.png)blogPublic为`hexo generate`生成静态文件的位置
## 通过pm2运行项目
```bash
pm2 start pm2.json
```