Files
Docker-Chevereto/docs/HTTPS.md
Rodolfo Berrios 530326a5e0 🎉 https
2022-10-17 16:16:44 -03:00

27 lines
522 B
Markdown

# 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=<hostname>
```
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=<hostname>
```