From 916cde6a15ee7e9ee486cd8039a4ff612dffaaff Mon Sep 17 00:00:00 2001 From: Rodolfo Berrios <20590102+rodber@users.noreply.github.com> Date: Fri, 28 Oct 2022 15:31:32 -0300 Subject: [PATCH] https --- docs/HTTPS.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/docs/HTTPS.md b/docs/HTTPS.md index 4467656..40e606b 100644 --- a/docs/HTTPS.md +++ b/docs/HTTPS.md @@ -1,25 +1,28 @@ # HTTPS -Place the certificate and private key at `https/`. +The certificate and private key will be taken from: -| Type | File | -| ----------- | ---------- | -| Certificate | `cert.pem` | -| Private key | `key.pem` | +| Type | File | +| ----------- | ---------------- | +| Certificate | `https/cert.pem` | +| Private key | `https/key.pem` | ## Create certificate -To create a certificate using certbot: +To create HTTPS certificate: + +* Spawn HTTP website (needed for Certbot validation) +* Run Certbot: ```sh make certbot HOSTNAME= ``` -The above command uses `certbot/certbot` for providing the files required, it will place the generated files at `https/`. +The above command uses `certbot/certbot` for providing the files required, it will place generated files at `https/`. Once done, re-spawn website with `PROTOCOL=https`. -## Use HTTPS +## Toggle HTTPS use -Alter the commands to use `PROTOCOL=https`: +By default the project uses `PROTOCOL=http`. Alter to `PROTOCOL=https` to use HTTPS: ```sh make up-d PROTOCOL=https HOSTNAME=