Move per-vhost policy derivation into toNginxVirtualHost (tracks IR#7) #44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
IR#7 adds
vhostPolicies :: [Policy]toNginxVirtualHost. Once that lands, the DSL needs to be updated to populate the new field and stop attaching vhost-level policies to the module-levelnginxPolicies.Changes required
src/Module/Nginx/VirtualHost.hstoNginxVirtualHostcurrently ignoresvhFallbacksand produces no policies.vhFallbacksand populatevhostPoliciesin the resultingNginxVirtualHost.src/Module/Nginx.hsderivePoliciescurrently collects vhost ports and builds module-level policies from them.nginxPoliciesshould contain only policies that genuinely belong to the whole module (if any). If none remain, the field may be left empty.Test fixtures
Update to include the new
vhostPoliciesfield:test/fixtures/nginx-module.jsontest/fixtures/nginx-virtual-host.jsontest/fixtures/server-stack.jsonDependency
Blocked on
FrogOS/IR#7merging andnix flake updatepicking up the new IR revision.