Adds additional caddy config keys (#7)

* test formatted Caddyfile

* add debug out
This commit is contained in:
OCram85 2022-01-11 14:17:41 +01:00 committed by GitHub
parent 00bdfcf4a7
commit d2645777c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 12 deletions

View File

@ -1,12 +1,18 @@
:8080 {
root * /usr/share/caddy
file_server
encode gzip zstd
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
}
{
debug
admin off
auto_https off
}
:8080 {
root * /usr/share/caddy
file_server
encode gzip zstd
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
}

16
Caddyfile.back Normal file
View File

@ -0,0 +1,16 @@
{
auto_https off
}
:8080 {
root * /usr/share/caddy
file_server
encode gzip zstd
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
}