1
1
# # directory to store static web files. if you use docker, please mount a persistence volume for it.
2
2
file_dir = " /data"
3
3
4
- # # enable cors, default is false, its implementation is simple now .
4
+ # # enable cors, default is none, when set '*', then all cors is ok .
5
5
# # Access-Control-Allow-Origin: $ORIGIN
6
6
# # Access-Control-Allow-Methods: OPTION,GET,HEAD
7
7
# # Access-Control-Max-Age: 3600
8
- # # If you put the server behind HTTPS proxy, please enable it
9
- cors = false
8
+ # # If you put the server behind HTTPS proxy, please enable it, or domains.cors = ['?']
9
+ # # Attension: domains.cors would overwrite the cors config, rather than merge this.
10
+ cors = [' *' ]
10
11
# # http bind, if set port <= 0 or remove http, will disable http server(need set https config)
11
12
[http ]
12
13
port = 80
13
14
addr = " 0.0.0.0"
14
- # # port when serving public PI ,default is http port. external_port should not be 0.
15
+ # # port when serving public network ,default is http port. external_port should not be 0.
15
16
# external_port = 80
16
17
17
18
# # optional, when https enabled, redirect_https default value true
@@ -21,7 +22,7 @@ addr = "0.0.0.0"
21
22
# [https]
22
23
# port = 443 # https bind address
23
24
# addr = "0.0.0.0"
24
- # # port when serving public PI ,default is https port. external_port should not be 0.
25
+ # # port when serving public network ,default is https port. external_port should not be 0.
25
26
# external_port = 443
26
27
27
28
# # if set true, http server(80) will send client
@@ -89,7 +90,7 @@ addr = "0.0.0.0"
89
90
# domain = "www.example.com"
90
91
# # optional, `example.com` would redirect to `www.example.com`
91
92
# alias = ["example.com"]
92
- # cors = false
93
+ # cors = ['https://www.example.com', 'http://www.baidu.com']
93
94
# [domains.https]
94
95
# # optional, when https enabled, redirect_https default value true
95
96
# # it would the port would be https.external_port(https.external_port should be defined), otherwise is false
@@ -106,7 +107,6 @@ addr = "0.0.0.0"
106
107
# expire = '30d' # 30day
107
108
# extension_names = ['icon', 'gif', 'jpg', 'jpeg', 'png', 'js']
108
109
109
- [openTelemetry ]
110
- endpoint = " http://localhost:4317"
111
-
112
110
111
+ # [openTelemetry]
112
+ # endpoint = "http://localhost:4317"
0 commit comments