Files
kazewp/templates/caddy.template
T
2024-12-30 19:16:20 +09:00

23 lines
400 B
Plaintext

${DOMAIN} {
#reverse_proxy wordpress_${DOMAIN}:80
tls internal
root * /var/www/${DOMAIN}/html
encode zstd gzip
# Serve WordPress PHP files through php-fpm:
php_fastcgi wordpress_${DOMAIN}:9000 {
root /var/www/html
}
# Enable the static file server:
file_server {
precompressed gzip
}
header / {
X-Frame-Options "SAMEORIGIN"
X-Content-Type-Options "nosniff"
}
}