Compare commits
No commits in common. "84470571d81c6ae3c0985081abb38a078fb40b03" and "34affedd0ba6d783d1549e80a8f47871100d9eb8" have entirely different histories.
84470571d8
...
34affedd0b
22
Caddyfile
22
Caddyfile
@ -5,8 +5,18 @@
|
||||
import email
|
||||
}
|
||||
|
||||
#{
|
||||
# servers :443 {
|
||||
# protocol {
|
||||
# experimental_http3
|
||||
# }
|
||||
# }
|
||||
#}
|
||||
|
||||
(basicerrors) {
|
||||
handle_errors {
|
||||
#respond "{http.error.status_code} {http.error.status_text}"
|
||||
|
||||
templates
|
||||
rewrite * /index.html
|
||||
root * /etc/caddy/errors
|
||||
@ -18,4 +28,16 @@
|
||||
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/*
|
||||
|
5
conf.d/metrics
Normal file
5
conf.d/metrics
Normal file
@ -0,0 +1,5 @@
|
||||
# vim: ft=caddyfile
|
||||
|
||||
:2020 {
|
||||
metrics
|
||||
}
|
Loading…
Reference in New Issue
Block a user