fixed domain issue

This commit is contained in:
2026-10-22 16:07:33 +01:00
parent 6193409838
commit 9d15d86613
11 changed files with 33 additions and 17 deletions
+22 -6
View File
@@ -1,7 +1,7 @@
# GuestOps deployment
GuestOps is deployed by the central Futuresens Ansible repository. Sandbox is
`https://guestops-sandbox.futuresens.co.uk` and production is
`https://sandbox-guestops.futuresens.co.uk` and production is
`https://guestops.futuresens.co.uk`.
## Prepare a version
@@ -31,7 +31,7 @@ The server group needs only the application switch, version and subdomain:
```yaml
hasguestops: true
guestopsversion: "0.2.2"
guestopssubdomain: "guestops-sandbox"
guestopssubdomain: "sandbox-guestops"
```
Production uses `guestopssubdomain: "guestops"`. The native services use the
@@ -57,9 +57,25 @@ 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 Nginx, and verifies local and public readiness. Port 8080 remains
loopback-only and `/var/lib/guestops/keys` survives redeployment.
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.
On the first deployment, create the certificate after the HTTP site is available:
```sh
sudo certbot --nginx \
-d sandbox-guestops.futuresens.co.uk \
--non-interactive \
--agree-tos \
-m dmccallum@futuresens.co.uk \
--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.
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, certificates, and host monitoring
are provided by the existing central infrastructure.
later) in group vars and run the same playbook. MongoDB backup, Filebeat, certificate
renewal, and host monitoring are provided by the existing central infrastructure.