-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.release.toml
112 lines (95 loc) · 3.77 KB
/
config.release.toml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
## directory to store static web files. if you use docker, please mount a persistence volume for it.
file_dir = "/data"
## enable cors, default is none, if cors is [], then all cors is ok.
## Access-Control-Allow-Origin: $ORIGIN
## Access-Control-Allow-Methods: OPTION,GET,HEAD
## Access-Control-Max-Age: 3600
## If you put the server behind HTTPS proxy, please enable it, or domains.cors = ['http://www.example.com:8080']
## Attension: domains.cors config would overwrite the cors config, rather than merge this.
cors = []
## http bind, if set port <= 0 or remove http, will disable http server(need set https config)
[http]
port = 80
addr = "0.0.0.0"
## port when serving public network,default is http port. external_port should not be 0.
# external_port = 80
## optional, when https enabled, redirect_https default value true
## it would the port would be https.external_port(https.external_port should be defined), otherwise is false
# redirect_https = true
# [https]
# port = 443 # https bind address
# addr = "0.0.0.0"
## port when serving public network,default is https port. external_port should not be 0.
# external_port = 443
## if set true, http server(80) will send client
## status code:301(Moved Permanently) to tell client redirect to https
## default value for https ssl
# [https.ssl]
# private = "private.key path" # private ssl key
# public = "public.cert path" # public ssl cert
## acme config, it doest not support run with https.ssl config.
# [https.acme]
## emails to Let's Encrypt needs to interact.
# emails = ["mailto:email@example.com"]
## directory to store account and certificate
## optional, default is ${file_dir}/acme
# dir = "/data/acme"
## ci / stage / prod, default is prod, ci is just for CI test with Pebble, don't use it.
# type = prod
## default cache config
[cache]
## if file size > max_size, it will not be cached. default is (10MB).
# max_size = 10_000_000
## gzip compression for js/json/icon/json, default is false,
## only support gzip algo, and only compress cached files,
## be careful to set it true
# compression = false
## http header Cache-Control config,
## optional, if not set, won't sender this header to client
# [[cache.client_cache]]
## 30day
# expire = '30d'
# extension_names = ['icon', 'gif', 'jpg', 'jpeg', 'png', 'js']
# [[cache.client_cache]]
# expire = '0'
# extension_names = ['html']
## admin server config
## admin server don't support hot reload. the config should not change.
## optional, and it's disabled by default.
## if you use spa-client to upload files, control version. Need to open it
# [admin_config]
# port = 9000
# addr = "127.0.0.1"
## this is used to check client request
## put it in http header, Authorization: Bearer $token
# token = "token"
## max file size allowed to be uploaded,
## default is 30MB(30*1000*1000)
# max_upload_size = 30_1000_1000
## delete deprecated version by cron
# [admin_config.deprecated_version_delete]
## default value: every day at 3am.
# cron = "0 0 3 * * *"
## default value is 2
# max_preserve = 2
## optional, domains specfic config, it will use the default config if not set
# [[domains]]
# domain = "www.example.com"
## optional, `example.com` would redirect to `www.example.com`
# alias = ["example.com"]
# cors = ['https://www.example.com', 'http://www.baidu.com']
# [domains.https]
## optional, when https enabled, redirect_https default value true
## it would the port would be https.external_port(https.external_port should be defined), otherwise is false
# redirect_https = 443
## this would be usefully when set https.acme
# disable_acme = false
# [domains.https.ssl]
# [domains.cache]
# max_size = 10_000_000
# compression = false
# [[domains.cache.client_cache]]
# expire = '30d' # 30day
# extension_names = ['icon', 'gif', 'jpg', 'jpeg', 'png', 'js']
# [openTelemetry]
# endpoint = "http://localhost:4317"