Files
watchstate/container/files/Caddyfile
Abdulmhsen B. A. A. 090304b053 Listen on https port.
2024-08-01 18:39:11 +03:00

31 lines
440 B
Caddyfile

{
persist_config off
http_port {$HTTP_PORT}
https_port {$HTTPS_PORT}
}
(app) {
root * /opt/app/public
log {
output discard
}
header * ?X-Request-Id "{http.request.uuid}"
php_fastcgi 127.0.0.1:{$FPM_PORT} {
trusted_proxies private_ranges
env X_REQUEST_ID "{http.request.uuid}"
}
}
http:// {
import app
}
https:// {
tls internal {
on_demand
}
import app
}