Remove some unused config
This commit is contained in:
parent
34affedd0b
commit
aee17c11e3
22
Caddyfile
22
Caddyfile
@ -5,18 +5,8 @@
|
|||||||
import email
|
import email
|
||||||
}
|
}
|
||||||
|
|
||||||
#{
|
|
||||||
# servers :443 {
|
|
||||||
# protocol {
|
|
||||||
# experimental_http3
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
#}
|
|
||||||
|
|
||||||
(basicerrors) {
|
(basicerrors) {
|
||||||
handle_errors {
|
handle_errors {
|
||||||
#respond "{http.error.status_code} {http.error.status_text}"
|
|
||||||
|
|
||||||
templates
|
templates
|
||||||
rewrite * /index.html
|
rewrite * /index.html
|
||||||
root * /etc/caddy/errors
|
root * /etc/caddy/errors
|
||||||
@ -28,16 +18,4 @@
|
|||||||
header Strict-Transport-Security max-age=31536000
|
header Strict-Transport-Security max-age=31536000
|
||||||
}
|
}
|
||||||
|
|
||||||
(matrix-well-known) {
|
|
||||||
handle_path /.well-known/matrix/* {
|
|
||||||
header Access-Control-Allow-Origin "*"
|
|
||||||
header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
|
|
||||||
header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization"
|
|
||||||
|
|
||||||
rewrite * {path}.json
|
|
||||||
root * /etc/caddy/matrix_well_known
|
|
||||||
file_server
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
import conf.d/*
|
import conf.d/*
|
||||||
|
Loading…
Reference in New Issue
Block a user