You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
445 B
Caddyfile

{
default_sni {$SERVER_NAME}
http_port 8000
https_port 8443
}
{$SERVER_NAME} {
import /etc/{$TLS_MODE}
root * /var/www/trial/public
encode zstd gzip
file_server
php_fastcgi php:9000 {
resolve_root_symlink
}
@phpFile {
path *.php*
}
error @phpFile "Not found" 404
log {
output file /var/log/caddy.log
}
header / {
X-Frame-Options "SAMEORIGIN"
X-Content-Type-Options "nosniff"
}
}