mirror of
https://github.com/chevereto/docker.git
synced 2026-05-07 15:15:31 +02:00
wip https
This commit is contained in:
26
docs/HTTPS.md
Normal file
26
docs/HTTPS.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user