From a726df5b7c9a2a24808fc81dc643f20d0153bdc9 Mon Sep 17 00:00:00 2001 From: mathew Date: Thu, 22 Oct 2026 16:38:40 +0100 Subject: [PATCH] fixed nginx issue --- docs/deployment.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/deployment.md b/docs/deployment.md index 681323d..37c2a02 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -57,9 +57,9 @@ ansible-playbook playbooks/guestops.yml -K \ The playbook stops the existing systemd services, replaces `/srv/guestops`, renders its environment configuration, starts the self-contained API and worker, -configures an HTTP Nginx site when a certificate does not yet exist, and verifies -local readiness. Port 8080 remains loopback-only and -`/var/lib/guestops/keys` survives redeployment. +and manages its Nginx site. It serves HTTP before the certificate exists and +switches the site to HTTPS after Certbot has created the certificate. Port 8080 +remains loopback-only and `/var/lib/guestops/keys` survives redeployment. On the first deployment, create the certificate after the HTTP site is available: @@ -72,9 +72,9 @@ sudo certbot --nginx \ --redirect ``` -For production, use `-d guestops.futuresens.co.uk`. Certbot updates the existing -Nginx site and manages renewal. Later GuestOps deployments detect the certificate -and leave that Certbot-managed site unchanged. +For production, use `-d guestops.futuresens.co.uk`. Certbot obtains and renews the +certificate. Rerun the GuestOps playbook after initial certificate creation so +Ansible writes the final HTTPS proxy configuration. To roll back, select an older retained native `guestopsversion` (version 0.2.2 or later) in group vars and run the same playbook. MongoDB backup, Filebeat, certificate