Queue local website activation from Apache previews
This commit is contained in:
1 parent
7f706c39b5
commit
6523c166a8
12 files changed
+459
-3
No files matched your search
@@ -175,3 +175,39 @@ connected. Follow their logs with `journalctl`.
|
||||
```sh
|
||||
sudo journalctl -u coulobre-panel -u coulobre-worker -u coulobre-beat
|
||||
```
|
||||
|
||||
## Activate local websites from the panel
|
||||
|
||||
Use the local activation worker when the panel and the Ubuntu 26.04 web node
|
||||
share a server. Install Apache and PHP 8.5 FPM on the host and follow the
|
||||
[web node setup](development.md#apply-a-manifest-on-an-ubuntu-web-node) and
|
||||
[socket setup](development.md#enable-local-web-activation).
|
||||
|
||||
Create a dedicated account and install the worker. Its systemd unit grants
|
||||
access to the activation socket for this worker process.
|
||||
|
||||
```sh
|
||||
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
|
||||
--shell /usr/sbin/nologin coulobre-provisioner
|
||||
sudo install -m 0644 deploy/systemd/coulobre-provisioner.service /etc/systemd/system/
|
||||
sudo systemctl daemon-reload
|
||||
```
|
||||
|
||||
Set `COULOBRE_LOCAL_WEB_ACTIVATION=1` in `/etc/coulobre/panel.env`, apply pending
|
||||
database 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-provisioner.service
|
||||
```
|
||||
|
||||
Open a completed Apache preview and select **Activate site**. The panel queues
|
||||
the request and shows its progress when you select **Refresh status**. Use
|
||||
**Retry activation** after a reported failure. Operators need permission to view
|
||||
hosting accounts and web provisioning plans and the **Can add web activation**
|
||||
permission.
|
||||
|
||||
The worker applies the domain shown in the preview. If the account's primary
|
||||
domain changes before the worker starts, create a preview for the new domain.
|
||||
An existing web node reservation stays bound to the domain it was created for.
|
||||
Reference in new issue
Block a user