Remove some unused config
This commit is contained in:
22
Caddyfile
22
Caddyfile
@ -5,18 +5,8 @@
|
||||
}
|
||||
|
||||
(basicerrors) {
|
||||
# servers :443 {
|
||||
# protocol {
|
||||
# experimental_http3
|
||||
# }
|
||||
# }
|
||||
#}
|
||||
|
||||
(basicerrors) {
|
||||
handle_errors {
|
||||
templates
|
||||
|
||||
templates
|
||||
rewrite * /index.html
|
||||
root * /etc/caddy/errors
|
||||
file_server
|
||||
@ -28,16 +18,4 @@
|
||||
}
|
||||
|
||||
import conf.d/*
|
||||
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/*
|
||||
|
Reference in New Issue
Block a user