wip https

This commit is contained in:
Rodolfo Berrios
2022-10-17 10:22:01 -03:00
parent 340c866c89
commit 175489dd68
7 changed files with 145 additions and 42 deletions

26
docs/HTTPS.md Normal file
View File

@@ -0,0 +1,26 @@
# HTTPS
Place the certificate and private key at `https/`.
| Type | File |
| ----------- | ---------- |
| Certificate | `cert.pem` |
| Private key | `key.pem` |
## Create certificate
To create a certificate using certbot:
```sh
make certbot HOSTNAME=chevereto.com
```
The above command uses `certbot/certbot` for providing the files required, it will place the generated files at `https/`.
## Use HTTPS
Alter the commands to use `PROTOCOL=https`:
```sh
make up-d PROTOCOL=https HOSTNAME=chevereto.com
```