fixed domain issue
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ unset RECOVERY_EMAIL
|
||||
|
||||
The command uses the configured database, generates a private link, prints it to the administrator's terminal and exits. Share it only with the verified owner. Do not paste it into tickets, chat logs, build logs or source control; avoid running this command in a recorded terminal. It expires in 30 minutes and can be consumed once. Running the command again invalidates the earlier link. Bootstrap remains a create-only command and cannot reset passwords.
|
||||
|
||||
`PublicUrl` must be the configured HTTPS origin, such as `https://guestops-sandbox.futuresens.co.uk`. Request Host headers never determine recovery-link origins. The Development-only preview uses `http://127.0.0.1:5173`.
|
||||
`PublicUrl` must be the configured HTTPS origin, such as `https://sandbox-guestops.futuresens.co.uk`. Request Host headers never determine recovery-link origins. The Development-only preview uses `http://127.0.0.1:5173`.
|
||||
|
||||
## Storage and session behavior
|
||||
|
||||
|
||||
+22
-6
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user