mirror of
https://codeberg.org/polyteknisk-radiogruppe/the_prg_server_configuration.git
synced 2026-06-13 18:28:55 +02:00
24 lines
649 B
Caddyfile
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
|
|
}
|
|
|