Compare commits
3 Commits
34affedd0b
...
master
Author | SHA1 | Date | |
---|---|---|---|
426afc4f79 | |||
84470571d8 | |||
aee17c11e3 |
22
Caddyfile
22
Caddyfile
@ -5,18 +5,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
(basicerrors) {
|
(basicerrors) {
|
||||||
# servers :443 {
|
|
||||||
# protocol {
|
|
||||||
# experimental_http3
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
#}
|
|
||||||
|
|
||||||
(basicerrors) {
|
|
||||||
handle_errors {
|
handle_errors {
|
||||||
templates
|
templates
|
||||||
|
|
||||||
templates
|
|
||||||
rewrite * /index.html
|
rewrite * /index.html
|
||||||
root * /etc/caddy/errors
|
root * /etc/caddy/errors
|
||||||
file_server
|
file_server
|
||||||
@ -28,16 +18,4 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
import conf.d/*
|
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/*
|
import conf.d/*
|
||||||
|
@ -4,11 +4,6 @@ git.boba.best {
|
|||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
import hsts
|
import hsts
|
||||||
|
|
||||||
handle_path /_/static/assets/* {
|
|
||||||
root * /var/www/git.boba.best/public
|
|
||||||
file_server
|
|
||||||
}
|
|
||||||
|
|
||||||
handle {
|
handle {
|
||||||
reverse_proxy localhost:85 {
|
reverse_proxy localhost:85 {
|
||||||
header_up X-Real-IP {remote_host}
|
header_up X-Real-IP {remote_host}
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
# vim: ft=caddyfile
|
|
||||||
|
|
||||||
:2020 {
|
|
||||||
metrics
|
|
||||||
}
|
|
Reference in New Issue
Block a user