restore_site
Restore a deleted domain's nginx config from its most recent archive and enable it. Requires confirm:true, test-renders before applying, and rolls back if that fails. Does not reload nginx.
Instructions
Restore a domain's nginx config from its most recent archive (created by delete_site) and enable it. Destructive to any current config for that domain - requires confirm:true. Test-renders before enabling and rolls back automatically if that fails. Does NOT reload nginx - call reload_nginx afterward.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain to restore | |
| confirm | No | Must be true to actually act; false (default) is a dry run | |
| archive_filename | No | A filename from list_archived_sites; defaults to the newest archive for this domain |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| success | Yes | ||
| reload_required | Yes | True on success - nginx has not actually been reloaded yet |