Hexo with Serverless

Hexo with Serverless

部署

参考官方文档即可完成部署[1],这里放出serverless.yml的配置信息

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
org: publicWebsite
app: blog.daiqianying.ac.cn
stage: dev
component: website
name: websiteContainer

inputs:
src:
src: ./public
index: index.html
error: 404.html
region: ap-guangzhou
bucketName: serverless-blog-daiqianying-ac-cn
protocol: https
hosts:
- host: blog.daiqianying.ac.cn # 希望配置的自定义域名
https:
switch: on
http2: off
certInfo:
certId: 'this is certId'
- host: daiqianying.ac.cn
https:
switch: on
http2: off
certInfo:
certId: 'this is certId'
- host: www.daiqianying.ac.cn
https:
switch: on
http2: off
certInfo:
certId: 'this is certId'

参考


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!