caddy: gzip encoding
This commit is contained in:
parent
47d1ba611b
commit
389df7965b
@ -7,6 +7,7 @@ writeTextFile {
|
||||
name = "e11sync-caddyfile";
|
||||
text = ''
|
||||
@addSlash path /static /blog /contact
|
||||
|
||||
route @addSlash {
|
||||
redir {uri}/ 302
|
||||
}
|
||||
@ -21,6 +22,9 @@ writeTextFile {
|
||||
}
|
||||
}
|
||||
|
||||
route {
|
||||
encode gzip
|
||||
reverse_proxy http://127.0.0.1:${toString backendPort}
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user