From c10ea680aecf831353fafc8eec4c1b1ef51b8b1a Mon Sep 17 00:00:00 2001 From: Maxime Helias Date: Fri, 20 Jan 2023 09:32:22 +0100 Subject: [PATCH] docs: add server name tips and custom https port note (#368) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: add server name tips and custom https port note * Update docs/build.md Co-authored-by: Kévin Dunglas * Update docs/build.md Co-authored-by: Kévin Dunglas Co-authored-by: Kévin Dunglas --- docs/build.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/build.md b/docs/build.md index 671a38e..f2ccfde 100644 --- a/docs/build.md +++ b/docs/build.md @@ -36,6 +36,8 @@ Use the `SERVER_NAME` environment variable to define your custom server name(s). If you use Mercure, keep `caddy:80` in the list to allow the PHP container to request the caddy service. +*Tips: You can define your server name variable in your `.env` file to keep it at each up* + ## Using custom HTTP ports Use the environment variables `HTTP_PORT`, `HTTPS_PORT` and/or `HTTP3_PORT` to adjust the ports to your needs, e.g. @@ -43,3 +45,5 @@ Use the environment variables `HTTP_PORT`, `HTTPS_PORT` and/or `HTTP3_PORT` to a HTTP_PORT=8000 HTTPS_PORT=4443 HTTP3_PORT=4443 docker compose up --build to access your appplication on [https://localhost:4443](https://localhost:4443). + +*Note: Let's Encrypt only supports the standard HTTP and HTTPS ports. Creating a Let's Encrypt certificate for another port will not work, you have to use the standard ports or to configure Caddy to use another provider.*