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:
parent
9590d1b0a0
commit
cfc5c570a1
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue