fixed nginx issue
This commit is contained in:
+6
-6
@@ -57,9 +57,9 @@ ansible-playbook playbooks/guestops.yml -K \
|
|||||||
|
|
||||||
The playbook stops the existing systemd services, replaces `/srv/guestops`,
|
The playbook stops the existing systemd services, replaces `/srv/guestops`,
|
||||||
renders its environment configuration, starts the self-contained API and worker,
|
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
|
and manages its Nginx site. It serves HTTP before the certificate exists and
|
||||||
local readiness. Port 8080 remains loopback-only and
|
switches the site to HTTPS after Certbot has created the certificate. Port 8080
|
||||||
`/var/lib/guestops/keys` survives redeployment.
|
remains loopback-only and `/var/lib/guestops/keys` survives redeployment.
|
||||||
|
|
||||||
On the first deployment, create the certificate after the HTTP site is available:
|
On the first deployment, create the certificate after the HTTP site is available:
|
||||||
|
|
||||||
@@ -72,9 +72,9 @@ sudo certbot --nginx \
|
|||||||
--redirect
|
--redirect
|
||||||
```
|
```
|
||||||
|
|
||||||
For production, use `-d guestops.futuresens.co.uk`. Certbot updates the existing
|
For production, use `-d guestops.futuresens.co.uk`. Certbot obtains and renews the
|
||||||
Nginx site and manages renewal. Later GuestOps deployments detect the certificate
|
certificate. Rerun the GuestOps playbook after initial certificate creation so
|
||||||
and leave that Certbot-managed site unchanged.
|
Ansible writes the final HTTPS proxy configuration.
|
||||||
|
|
||||||
To roll back, select an older retained native `guestopsversion` (version 0.2.2 or
|
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
|
later) in group vars and run the same playbook. MongoDB backup, Filebeat, certificate
|
||||||
|
|||||||
Reference in New Issue
Block a user