Add website HTTPS requests to Coulobre Panel
This commit is contained in:
1 parent
43d03d207e
commit
4d6aa0c281
14 files changed
+368
-3
No files matched your search
@@ -219,6 +219,48 @@ web node and enable its HTTPS virtual host. Each site uses its own
|
||||
certificate. The renewal hook reloads Apache after Certbot renews it.
|
||||
[Hosted website HTTPS setup](development.md#enable-https-for-a-hosted-website)
|
||||
|
||||
### Request HTTPS from the panel
|
||||
|
||||
Set up Apache's HTTP-01 webroot and the Certbot renewal hook on the local
|
||||
web node. Register a Certbot account if this node does not already have one,
|
||||
using an email address monitored by the operator.
|
||||
[Hosted website HTTPS setup](development.md#enable-https-for-a-hosted-website)
|
||||
|
||||
```sh
|
||||
sudo certbot register --email hostmaster@example.org --agree-tos
|
||||
sudo groupadd --system coulobre-https-provisioning
|
||||
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
|
||||
--shell /usr/sbin/nologin coulobre-https-provisioner
|
||||
sudo install -m 0644 deploy/systemd/coulobre-https-apply.socket \
|
||||
deploy/systemd/coulobre-https-apply@.service \
|
||||
deploy/systemd/coulobre-https-provisioner.service /etc/systemd/system/
|
||||
sudo systemctl daemon-reload
|
||||
```
|
||||
|
||||
Set `COULOBRE_LOCAL_WEB_HTTPS=1` in `/etc/coulobre/panel.env`, then apply
|
||||
pending migrations and restart the panel services.
|
||||
|
||||
```sh
|
||||
panel_manage migrate --noinput
|
||||
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
|
||||
sudo systemctl enable --now coulobre-https-apply.socket \
|
||||
coulobre-https-provisioner.service
|
||||
```
|
||||
|
||||
On an active site's Apache preview, select **Enable HTTPS** and use
|
||||
**Refresh status** to follow the request. This requires the **Can add
|
||||
website HTTPS request** permission and access to view hosting accounts
|
||||
and web provisioning plans. The worker uses the manifest's primary
|
||||
domain and keeps Certbot logs and credentials on the web node. If the
|
||||
request fails, check the diagnostic and use **Retry HTTPS** after
|
||||
resolving the problem. Certbot handles later renewals.
|
||||
|
||||
The panel uses HTTP-01 for initial issuance. For DNS validation, obtain
|
||||
the certificate on the web node with its configured Certbot DNS plugin
|
||||
and the expected lineage name. The panel can then enable HTTPS using
|
||||
that certificate. Certbot renews it with its saved authenticator.
|
||||
[Certbot DNS plugins](https://eff-certbot.readthedocs.io/en/stable/using.html#dns-plugins)
|
||||
|
||||
## Provision local databases from the panel
|
||||
|
||||
Enable the [database provisioning socket](development.md#enable-local-database-provisioning)
|
||||
|
||||
Reference in new issue
Block a user