docs: encode short syntax

This commit is contained in:
Kévin Dunglas 2025-01-09 15:54:47 +01:00
parent dbd9cc7948
commit bb897a9035
No known key found for this signature in database
GPG key ID: 4D04EBEF06AAF3A6
4 changed files with 16 additions and 10 deletions

View file

@ -66,7 +66,7 @@ With a PHP FastCGI service running, something like this works for most modern PH
```caddy
example.com {
root * /srv/public
encode gzip
encode
php_fastcgi localhost:9000
file_server
}
@ -217,7 +217,7 @@ A typical SPA config usually looks something like this:
```caddy
example.com {
root * /srv
encode gzip
encode
try_files {path} /index.html
file_server
}
@ -227,7 +227,7 @@ If your SPA is coupled with an API or other server-side-only endpoints, you will
```caddy
example.com {
encode gzip
encode
handle /api/* {
reverse_proxy backend:8000