test formatted Caddyfile
This commit is contained in:
parent
00bdfcf4a7
commit
c3971f8e34
26
Caddyfile
26
Caddyfile
@ -1,12 +1,16 @@
|
||||
: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
|
||||
}
|
||||
{
|
||||
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
16
Caddyfile.back
Normal 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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user