Files
dokku/plugins
Jose Diaz-Gonzalez 465de6cc71 refactor: consolidate nginx.conf.sigil server blocks
The default nginx template rendered four near-identical server blocks per app, so the same listen, access_log, error_log, ssl_*, error_page, and proxy chain had to be maintained across http, https, grpc, and grpcs branches. Merging http and https into a single branch keyed on an `is_ssl` boolean, and likewise grpc and grpcs, removes the duplicate proxy_set_header chain and error-page locations and brings the structure in line with the openresty proxy template. Output is preserved up to whitespace and the existing `cat -s` pass already squashes the leftover blank lines. Adds plugins/nginx-vhosts/template_test.go exercising the rendered output via sigil as a Go library across HTTP-only, HTTPS, HTTP-to-HTTPS redirect, no-listeners 502 fallback, gRPC, gRPCs, gRPC-without-listeners skip, IPv4 bind, upstream blocks with and without keepalive, the access_log `off` short-circuit, the X-Forwarded-Ssl toggle, the http2 listen-parameter vs directive split, http2_push_preload conditional emission, and the nginx.conf.d/*.conf include in every code path; and tests/unit/nginx-vhosts_16.bats covering deploy plus `nginx -t` end-to-end for both HTTP and HTTPS apps.
2026-04-30 16:36:45 -04:00
..
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00
2026-04-30 17:38:51 +00:00