mirror of
https://github.com/chevereto/docker.git
synced 2026-06-25 01:21:58 +02:00
34 lines
676 B
Markdown
34 lines
676 B
Markdown
# HTTPS
|
|
|
|
🎉 HTTPS is automatic provided by `nginxproxy/acme-companion`.
|
|
|
|
## Disable HTTPS
|
|
|
|
Pass option `PROTOCOL=http` to use HTTP:
|
|
|
|
```sh
|
|
make up-d PROTOCOL=http <OPTIONS>
|
|
```
|
|
|
|
## Manual HTTPS
|
|
|
|
The certificate and private key will be taken from:
|
|
|
|
| Type | File |
|
|
| ----------- | ---------------- |
|
|
| Certificate | `https/cert.pem` |
|
|
| Private key | `https/key.pem` |
|
|
|
|
### Create certificate
|
|
|
|
To create HTTPS certificate:
|
|
|
|
* Spawn HTTP website (needed for Certbot validation)
|
|
* Run Certbot:
|
|
|
|
```sh
|
|
make certbot HOSTNAME=<hostname>
|
|
```
|
|
|
|
The above command uses `certbot/certbot` for providing the files required, it will place generated files at `https/`.
|