caddy/Caddyfile

10 lines
205 B
Caddyfile

:80 {
request_header +X-Forwarded-Proto "https"
root * /var/www/html
php_fastcgi wordpress:9000 {
header_up +X-Forwarded-Proto "https"
}
header +X-Forwarded-Proto "https"
encode gzip
file_server
}