@@ -12,7 +12,7 @@ The config default path is `./config.toml`, you can change it by environment `SP
1212
1313``` toml
1414# # directory to store static web files. if you use docker, please mount a persistence volume for it.
15- file_dir = " /data"
15+ file_dir = " . /data"
1616
1717# # enable cors, default is none, if cors is [], then all cors is ok.
1818# # Access-Control-Allow-Origin: $ORIGIN
@@ -32,51 +32,6 @@ addr = "0.0.0.0"
3232# # it would the port would be https.external_port(https.external_port should be defined), otherwise is false
3333# redirect_https = true
3434
35- # [https]
36- # port = 443 # https bind address
37- # addr = "0.0.0.0"
38- # # port when serving public network,default is https port. external_port should not be 0.
39- # external_port = 443
40-
41- # # if set true, http server(80) will send client
42- # # status code:301(Moved Permanently) to tell client redirect to https
43-
44- # # default value for https ssl
45- # [https.ssl]
46- # private = "private.key path" # private ssl key
47- # public = "public.cert path" # public ssl cert
48-
49- # # acme config, it doest not support run with https.ssl config.
50- # [https.acme]
51- # # emails to Let's Encrypt needs to interact.
52- # emails = ["mailto:[email protected] "]53-
54- # # directory to store account and certificate
55- # # optional, default is ${file_dir}/acme
56- # dir = "/data/acme"
57-
58- # # ci / stage / prod, default is prod, ci is just for CI test with Pebble, don't use it.
59- # type = prod
60-
61- # # default cache config
62- [cache ]
63- # # if file size > max_size, it will not be cached. default is (10MB).
64- # max_size = 10_000_000
65- # # gzip compression for js/json/icon/json, default is false,
66- # # only support gzip algo, and only compress cached files,
67- # # be careful to set it true
68- # compression = false
69-
70- # # http header Cache-Control config,
71- # # optional, if not set, won't sender this header to client
72- # [[cache.client_cache]]
73- # # 30day
74- # expire = '30d'
75- # extension_names = ['icon', 'gif', 'jpg', 'jpeg', 'png', 'js']
76- # [[cache.client_cache]]
77- # expire = '0'
78- # extension_names = ['html']
79-
8035# # admin server config
8136# # admin server don't support hot reload. the config should not change.
8237# # optional, and it's disabled by default.
@@ -109,18 +64,4 @@ addr = "0.0.0.0"
10964# # it would the port would be https.external_port(https.external_port should be defined), otherwise is false
11065# redirect_https = 443
11166
112- # # this would be usefully when set https.acme
113- # disable_acme = false
114- # [domains.https.ssl]
115-
116- # [domains.cache]
117- # max_size = 10_000_000
118- # compression = false
119- # [[domains.cache.client_cache]]
120- # expire = '30d' # 30day
121- # extension_names = ['icon', 'gif', 'jpg', 'jpeg', 'png', 'js']
122-
123-
124- # [openTelemetry]
125- # endpoint = "http://localhost:4317"
12667```
0 commit comments