feat(nginx): add site Nginx configuration resource#53
Merged
Conversation
Wire SiteResource::nginxConfig(), add a get->update round-trip test recorded against the live site (writes the same config back, leaving the site unchanged), plus an NginxConfigFixture that overwrites the config content (server names + filesystem paths). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parent
Part of #32 (SDK enhancements for IaC readiness).
Closes #40.
What this adds
Site-scoped Nginx configuration:
$forge->server($id)->site($siteId)->nginxConfig().nginxConfig()->get(): NginxConfig—id+ nullablecontent(null while regenerating)nginxConfig()->update(UpdateNginxConfigData)— async (202, void); body sent underconfigVerified live, then recorded
Recorded against the real site: read the config, then write the same content back so the site is unchanged. Confirmed live: PUT body key is
config, update is async202empty body.Security
NginxConfigFixtureoverwrites thecontentblob (real server names +/home/forgepaths) with a neutral placeholder.Tests
Full gate green: pint, rector, phpstan, type-coverage, and
pest --exactly=100(100% coverage).🤖 Generated with Claude Code