Recipe
nginx
NGINX reverse-proxy gateway for local development via Docker Compose. Synthesized-mode Workload — the compose provider translates the Workload into a service entry. The upstream host and port arrive on .context.inject.env under the two variables the locals name, which the `upstream` edge's inject block names, and are written into a minimal NGINX server configuration whose proxy_pass forwards matching requests to that upstream. With an edge wired on any socket but guard and either variable missing from the pipe, the build halts naming the edge and its socket; with neither on the pipe and no such edge, the location answers 503. A core/prompt-injection-shield attachment's realization (prompt-injection-shield-nginx) writes the two variables with the address of the guard wired to the guard socket. provides.host is the bare service name, resolved on the compose network. Each core/traffic-shadowing attachment on the component adds a mirror to that location, sending a copy of every forwarded request, with its original URI, to the service the attachment's infra names, whose response NGINX discards. NGINX cannot copy a share of the requests, so the FeatureRecipe realizing the attachment (traffic-shadowing-nginx) halts on a share below 100, and this Recipe halts on an attachment to a gateway that forwards nothing. With no such attachment the configuration carries no mirror. Each core/concurrency-limit attachment adds a cap, one total across NGINX's worker processes, and a request past it is answered 503; concurrency-limit-nginx refuses scope model.
版本
出處
- 內容摘要
- sha256:ce4db597a882cd5bddf07e7ef3b4be221dfbedeaf5f4ae26a8b32afe72784b25
- 發布時間
- 2026-11-10T10:19:58Z
- 簽署身分
- https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
簽章
- 官方application/vnd.dev.sigstore.bundle.v0.3+json
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
sha256:9021371e888bf09f71b0478b71fce790f7ac8ca2157f0ef0a4e8246c022fc1d7
此版本的參照
oci://hub.aggrega.ai/recipe/compose/nginx:1.0.0- 目標
- —
- 實作
- core/gateway/nginx:1.0.0
提供
此配方為使用端連接的確定性指標範本。
| 名稱 | 範本 |
|---|---|
| host | {{ .context.instance_id }} |
| port | {{ .infra.port }} |
| protocol | http |
Workload
Workload · containers: main
Locals
| 名稱 | 範本 |
|---|---|
| upstream_host_variable | NGINX_UPSTREAM_HOST |
| upstream_port_variable | NGINX_UPSTREAM_PORT |
值對應
未宣告任何值對應。
關係
與其他已發布實體之間具型別的邊。沒有已發布目標的參照,會渲染為中斷的邊,而不是連結。
使用
- 實作實作契約相容
core/gateway/nginx:1.0.0
所有必要的輸出都已滿足,且每個提供的輸出都在契約中列名。
被使用於
目錄中沒有任何項目相依於此實體。