fix: 🐛 Force port 80 in Caddyfile

- Add port 80 to the server address
- Add trailing newline to the Caddyfile
- Fix extra whitespace in the `Cache-Control` header

These changes ensure that Caddy listens on the correct port and prevent potential parsing issues due to the missing newline.  The whitespace fix improves consistency and readability.
This commit is contained in:
Maicol Battistini 2025-01-24 10:18:26 +01:00
parent 9590d1b0a0
commit cfc5c570a1
No known key found for this signature in database
1 changed files with 4 additions and 4 deletions

View File

@ -11,9 +11,9 @@
order php before file_server
}
{$CADDY_EXTRA_CONFIG}
{$CADDY_EXTRA_CONFIG}
{$SERVER_NAME:localhost} {
{$SERVER_NAME:localhost}:80 {
root * web/
encode zstd br gzip
@ -39,9 +39,9 @@
file
path *.avif *.css *.eot *.gif *.gz *.ico *.jpg *.jpeg *.js *.otf *.pdf *.png *.svg *.ttf *.webp *.woff *.woff2
}
header @static Cache-Control "max-age=31536000,public,immutable"
header @static Cache-Control "max-age=31536000,public,immutable"
{$CADDY_SERVER_EXTRA_DIRECTIVES}
php_server
}
}