Documentation
¶
Overview ¶
Package nginxtopo resolves on-disk nginx directory topology for projects fronted by another stack's nginx (NGINX_FRONTED_BY / config.NginxConfig. FrontedBy). It has no dependency on internal/config, internal/build, or internal/doctor so any of them can import it without a cycle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveFrontingDir ¶
ResolveFrontingDir resolves the directory of the stack named by frontedBy when projectDir is laid out as a subdirectory (conventionally "backend") directly under that stack's own directory.
Example: projectDir ".../nself-web/backend" with frontedBy "nself-web" resolves to ".../nself-web" — the fronting stack's own root. Callers append their own "nginx/..." subpath (e.g. "nginx/sites") to that root.
Types ¶
This section is empty.