26 lines
710 B
Caddyfile
26 lines
710 B
Caddyfile
{
|
|
http_port 8080
|
|
https_port 8443
|
|
}
|
|
|
|
http:// {
|
|
root * /opt/app/public
|
|
|
|
header * ?X-Request-Id "{http.request.uuid}"
|
|
|
|
php_fastcgi 127.0.0.1:9000 {
|
|
trusted_proxies private_ranges
|
|
env X_REQUEST_ID "{http.request.uuid}"
|
|
}
|
|
|
|
log
|
|
|
|
# Disabled as workaround for arm/v7 build.
|
|
#
|
|
#log {
|
|
# format transform `{request>headers>X-Forwarded-For>[0]:request>remote_ip} - [{ts}] "{request>method} {request>uri} {request>proto}" {status} {size} "{request>headers>Referer>[0]}" "{request>headers>User-Agent>[0]}" - "{resp_headers>X-Request-Id>[0]}" - "{resp_headers>X-Application-Version>[0]}"` {
|
|
# time_format "02/Jan/2006:15:04:05 -0700"
|
|
# }
|
|
#}
|
|
}
|