the_prg_server_configuration/nix-system-configs/modules/songsheet/wavelog/Caddyfile
2026-03-20 15:41:59 +01:00

24 lines
649 B
Caddyfile

{
admin off
servers {
# Trust the upstream reverse proxy (Traefik) so the Panel recognizes
# TLS is terminated there. Replace 10.1.1.250 with your Traefik IP
# or the Cloudflare IP ranges if you're using Cloudflare Flexible SSL.
trusted_proxies static 10.1.1.250
}
}
:80 {
root * /var/www/html/public
encode gzip
# FastCGI to the bundled php-fpm in the Panel image
php_fastcgi 127.0.0.1:9000 {
# Optional: raise upload limits if you need larger file uploads
env PHP_VALUE "upload_max_filesize = 256M
post_max_size = 256M"
}
file_server
}