From f31a3053858267f1702a8271c6c393cc279b6d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20H=C3=A9lias?= Date: Sun, 3 Dec 2023 21:08:17 +0100 Subject: [PATCH] feat: add caddy server extra --- docs/tls.md | 4 ++-- frankenphp/Caddyfile | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/tls.md b/docs/tls.md index 44d4f3c70..c962579ac 100644 --- a/docs/tls.md +++ b/docs/tls.md @@ -26,11 +26,11 @@ For instance, to use self-signed certificates created with [mkcert](https://gith `mkdir frankenphp/certs -p` 3. Generate the certificates for your local host (example: "server-name.localhost"): `mkcert -cert-file frankenphp/certs/tls.pem -key-file frankenphp/certs/tls.key "server-name.localhost"` -4. Add these lines to the `./compose.override.yaml` file about `CADDY_EXTRA_CONFIG` environment and volume for the `php` service : +4. Add these lines to the `./compose.override.yaml` file about `CADDY_SERVER_EXTRA_DIRECTIVES` environment and volume for the `php` service : ```diff php: environment: - + CADDY_EXTRA_CONFIG: "tls /etc/caddy/certs/tls.pem /etc/caddy/certs/tls.key" + + CADDY_SERVER_EXTRA_DIRECTIVES: "tls /etc/caddy/certs/tls.pem /etc/caddy/certs/tls.key" # ... volumes: + - ./frankenphp/certs:/etc/caddy/certs:ro diff --git a/frankenphp/Caddyfile b/frankenphp/Caddyfile index 0a95f3b07..3056acdfd 100644 --- a/frankenphp/Caddyfile +++ b/frankenphp/Caddyfile @@ -46,6 +46,8 @@ vulcain + {$CADDY_SERVER_EXTRA_DIRECTIVES} + # Disable Topics tracking if not enabled explicitly: https://github.com/jkarlin/topics header ?Permissions-Policy "browsing-topics=()"