{"id":13471555,"url":"https://github.com/cubicdaiya/nginx-build","last_synced_at":"2026-04-02T16:24:34.580Z","repository":{"id":17289846,"uuid":"20060139","full_name":"cubicdaiya/nginx-build","owner":"cubicdaiya","description":"Seamless nginx builder","archived":false,"fork":false,"pushed_at":"2026-03-28T06:34:29.000Z","size":1043,"stargazers_count":422,"open_issues_count":6,"forks_count":51,"subscribers_count":15,"default_branch":"master","last_synced_at":"2026-03-28T11:37:13.581Z","etag":null,"topics":["build-tool","nginx"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cubicdaiya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2014-05-22T12:29:12.000Z","updated_at":"2026-03-28T06:25:54.000Z","dependencies_parsed_at":"2023-12-24T02:19:45.308Z","dependency_job_id":"e88993be-70c0-4b3b-ad31-208c6135c705","html_url":"https://github.com/cubicdaiya/nginx-build","commit_stats":null,"previous_names":[],"tags_count":107,"template":false,"template_full_name":null,"purl":"pkg:github/cubicdaiya/nginx-build","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cubicdaiya%2Fnginx-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cubicdaiya%2Fnginx-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cubicdaiya%2Fnginx-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cubicdaiya%2Fnginx-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cubicdaiya","download_url":"https://codeload.github.com/cubicdaiya/nginx-build/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cubicdaiya%2Fnginx-build/sbom","scorecard":{"id":208930,"data":{"date":"2025-08-11","repo":{"name":"github.com/cubicdaiya/nginx-build","commit":"2d48bdf5e47f8cbfac3d89310066e95474643fde"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.3,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:81: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:75: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:88: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:90: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:107: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:109: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/renovate-config-validator-ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/renovate-config-validator-ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/security.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/cubicdaiya/nginx-build/security.yml/master?enable=pin","Info:   0 out of  23 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:37","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:38","Warn: no topLevel permission defined: .github/workflows/codeql.yml:1","Warn: no topLevel permission defined: .github/workflows/go.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/renovate-config-validator-ci.yml:1","Warn: no topLevel permission defined: .github/workflows/security.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.16.1 not signed: https://api.github.com/repos/cubicdaiya/nginx-build/releases/238904140","Warn: release artifact v0.16.0 not signed: https://api.github.com/repos/cubicdaiya/nginx-build/releases/235350429","Warn: release artifact v0.15.1 not signed: https://api.github.com/repos/cubicdaiya/nginx-build/releases/223775803","Warn: release artifact v0.15.0 not signed: https://api.github.com/repos/cubicdaiya/nginx-build/releases/215393453","Warn: release artifact v0.14.8 not signed: https://api.github.com/repos/cubicdaiya/nginx-build/releases/214934043","Warn: release artifact v0.16.1 does not have provenance: https://api.github.com/repos/cubicdaiya/nginx-build/releases/238904140","Warn: release artifact v0.16.0 does not have provenance: https://api.github.com/repos/cubicdaiya/nginx-build/releases/235350429","Warn: release artifact v0.15.1 does not have provenance: https://api.github.com/repos/cubicdaiya/nginx-build/releases/223775803","Warn: release artifact v0.15.0 does not have provenance: https://api.github.com/repos/cubicdaiya/nginx-build/releases/215393453","Warn: release artifact v0.14.8 does not have provenance: https://api.github.com/repos/cubicdaiya/nginx-build/releases/214934043"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:7"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (30) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T00:21:31.657Z","repository_id":17289846,"created_at":"2025-08-17T00:21:31.657Z","updated_at":"2025-08-17T00:21:31.657Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31309834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build-tool","nginx"],"created_at":"2024-07-31T16:00:46.596Z","updated_at":"2026-04-02T16:24:34.556Z","avatar_url":"https://github.com/cubicdaiya.png","language":"Go","funding_links":[],"categories":["Go","Third Modules","Tools"],"sub_categories":["C Modules","Lua Modules"],"readme":"# nginx-build\n\n`nginx-build` - provides a command to build nginx seamlessly.\n\n![gif](https://raw.githubusercontent.com/cubicdaiya/nginx-build/master/images/nginx-build.gif)\n\n## Requirements\n\n * [git](https://git-scm.com/) and [hg](https://www.mercurial-scm.org/) for downloading 3rd party modules\n * [patch](https://savannah.gnu.org/projects/patch/) for applying patch to nginx\n\n## Build Support\n\n * [nginx](https://nginx.org/)\n * [OpenResty](https://openresty.org/)\n * [freenginx](https://freenginx.org/)\n * Custom nginx sources via `-customnginx` (for example Angie, nginx forks, and feature branches)\n\n## Installation\n\n```bash\ngo install github.com/cubicdaiya/nginx-build@latest\n```\n\n## Quick Start\n\n```console\nnginx-build -d work\n```\n\n## Custom Configuration\n\n`nginx-build` provides a mechanism for customizing configuration for building nginx.\n\n### Configuration for building nginx\n\nPrepare a configure script like the following.\n\n```bash\n#!/bin/sh\n\n./configure \\\n--sbin-path=/usr/sbin/nginx \\\n--conf-path=/etc/nginx/nginx.conf \\\n```\n\nGive this file to `nginx-build` with `-c`.\n\n```bash\n$ nginx-build -d work -c configure.example\n```\n\n### Embedding zlib statically\n\nGive `-zlib` to `nginx-build`.\n\n```bash\n$ nginx-build -d work -zlib\n```\n\n`-zlibversion` is an option to set a version of zlib.\n\n### Embedding PCRE statically\n\nGive `-pcre` to `nginx-build`.\n\n```bash\n$ nginx-build -d work -pcre\n```\n\n`-pcreversion` is an option to set a version of PCRE.\n\n### Embedding OpenSSL statically\n\nGive `-openssl` to `nginx-build`.\n\n```bash\n$ nginx-build -d work -openssl\n```\n\n`-opensslversion` is an option to set a version of OpenSSL.\n\n### Embedding LibreSSL statically\n\nGive `-libressl` to `nginx-build`.\n\n```bash\n$ nginx-build -d work -libressl\n```\n\n`-libresslversion` is an option to set a version of LibreSSL.\n\n### Using a Custom nginx Source\n\n`nginx-build` can also build nginx from a custom URL, in the same way as `-customssl`. The URL can be either a tarball or a Git repository.\n\nThis is intended for custom nginx trees in general, such as Angie, nginx forks, QUIC branches, or internal vendor branches.\n\n#### Basic Usage\n\n```bash\n# Using Angie from Git repository\n$ nginx-build -d work \\\n  -customnginx https://github.com/webserver-llc/angie.git \\\n  -customnginxname angie\n\n# Using a tarball URL\n$ nginx-build -d work \\\n  -customnginx https://example.com/nginx-quic.tar.gz \\\n  -customnginxname nginx-quic\n\n# Using a custom nginx branch from Git\n$ nginx-build -d work \\\n  -customnginx https://github.com/example/nginx.git \\\n  -customnginxname nginx-feature \\\n  -customnginxtag feature/http3\n```\n\n#### Using a Specific Git Tag or Branch\n\nFor Git repositories, you can specify a tag or branch with `-customnginxtag`:\n\n```bash\n# Use Angie with a specific tag\n$ nginx-build -d work \\\n  -customnginx https://github.com/webserver-llc/angie.git \\\n  -customnginxname angie \\\n  -customnginxtag Angie-1.11.3\n\n# Use another custom nginx tree with a specific tag\n$ nginx-build -d work \\\n  -customnginx https://github.com/example/nginx-quic.git \\\n  -customnginxname nginx-quic \\\n  -customnginxtag v1.0.0\n```\n\n#### Available Options\n\n- `-customnginx`: URL of the custom nginx source (supports both Git repositories and tarballs)\n- `-customnginxname`: Name for the custom nginx source (used in directory names)\n- `-customnginxtag`: Git tag or branch to checkout (only for Git repositories)\n\nFor tarball URLs, the archive must extract into a single top-level directory. Archives that unpack files directly at the root, or contain multiple top-level directories, are not supported.\n\n### Using Custom SSL Libraries (e.g., BoringSSL)\n\n`nginx-build` supports using arbitrary SSL libraries through custom SSL options. This is useful for libraries like BoringSSL that are not available as standard options.\n\n#### Basic Usage\n\nTo use a custom SSL library, provide the download URL with `-customssl`. The URL can be either a tarball or a Git repository:\n\n```bash\n# Using BoringSSL from Git repository\n$ nginx-build -d work -customssl https://boringssl.googlesource.com/boringssl -customsslname boringssl\n\n# Using a tarball URL\n$ nginx-build -d work -customssl https://example.com/customssl-1.0.0.tar.gz -customsslname customssl\n```\n\n#### Using a Specific Git Tag or Branch\n\nFor Git repositories, you can specify a tag or branch with `-customssltag`:\n\n```bash\n# Use BoringSSL with chromium-stable branch\n$ nginx-build -d work \\\n  -customssl https://boringssl.googlesource.com/boringssl \\\n  -customsslname boringssl \\\n  -customssltag chromium-stable\n\n# Use OpenSSL from Git with specific tag\n$ nginx-build -d work \\\n  -customssl https://github.com/openssl/openssl.git \\\n  -customsslname openssl-git \\\n  -customssltag openssl-3.5.1\n\n# Use oqs-provider (OpenSSL provider) with tag 0.9.0\n$ nginx-build -d work \\\n  -customssl https://github.com/open-quantum-safe/oqs-provider.git \\\n  -customsslname oqs-provider \\\n  -customssltag 0.9.0\n```\n\n#### Using a Tarball URL\n\nYou can also use tarball URLs for custom SSL libraries:\n\n```bash\n# Using a custom OpenSSL build from a tarball\n$ nginx-build -d work \\\n  -customssl https://example.com/myssl-1.0.0.tar.gz \\\n  -customsslname myssl\n```\n\nThe tarball must extract into a single top-level directory. Archives that unpack files directly at the root, or contain multiple top-level directories, are not supported.\n\n#### Available Options\n\n- `-customssl`: URL of the custom SSL library (supports both Git repositories and tarballs)\n- `-customsslname`: Name for the custom SSL library (used in directory names)\n- `-customssltag`: Git tag or branch to checkout (only for Git repositories)\n\n#### Supported Git Repository Formats\n\nThe following Git repository URL formats are automatically detected:\n- URLs ending with `.git`\n- URLs using `git://` protocol\n- GitHub repository URLs (e.g., `https://github.com/user/repo`)\n- Google Source URLs (e.g., `https://boringssl.googlesource.com/boringssl`)\n\nNote: URLs containing `/releases/download/` or `/archive/` are treated as tarball downloads, not Git repositories.\n\n### Embedding 3rd-party modules\n\n`nginx-build` provides a mechanism for embedding 3rd-party modules.\nPrepare a json file below.\n\n```ini\n[\n  {\n    \"name\": \"ngx_http_hello_world\",\n    \"form\": \"git\",\n    \"url\": \"https://github.com/cubicdaiya/ngx_http_hello_world\"\n  }\n]\n```\n\nGive this file to `nginx-build` with `-m`.\n\n```bash\n$ nginx-build -d work -m modules.json.example\n```\n\n#### Embedding 3rd-party module dynamically\n\nGive `true` to `dynamic`.\n\n```ini\n[\n  {\n    \"name\": \"ngx_http_hello_world\",\n    \"form\": \"git\",\n    \"url\": \"https://github.com/cubicdaiya/ngx_http_hello_world\",\n    \"dynamic\": true\n  }\n]\n```\n\n#### Provision for 3rd-party module\n\nThere are some 3rd-party modules expected provision. `nginx-build` provides the options such as `shprov` and `shprovdir` for this problem.\nThere is the example configuration below.\n\n```ini\n[\n  {\n    \"name\": \"njs/nginx\",\n    \"form\": \"hg\",\n    \"url\": \"https://hg.nginx.org/njs\",\n    \"shprov\": \"./configure \u0026\u0026 make\",\n    \"shprovdir\": \"..\"\n  }\n]\n```\n\n## Applying patch before building nginx\n\n`nginx-build` provides the options such as `-patch` and `-patch-opt` for applying patches to the extracted sources. By default `-patch \u003cpath\u003e` targets the primary tree (nginx, OpenResty, freenginx, or a custom nginx source depending on the build). To patch other bundled components prefix the flag with the component name, for example `-patch openssl=/path/to/openssl.patch`. Supported targets include `nginx`, `openresty`, `freenginx`, `customnginx` (or the custom name), `pcre`/`pcre2`, `openssl`, `libressl`, `customssl` (or the custom name), and `zlib`.\n\n```console\nnginx-build \\\n -d work \\\n -openssl \\\n -patch patches/nginx.patch \\\n -patch openssl=patches/openssl.patch \\\n -patch-opt \"-p1\"\n```\n\n## Idempotent build\n\n`nginx-build` supports a certain level of idempotent build of nginx.\nIf you want to ensure a build of nginx idempotent and do not want to build nginx as same as already installed nginx,\ngive `-idempotent` to `nginx-build`.\n\n```bash\n$ nginx-build -d work -idempotent\n```\n\n`-idempotent` ensures an idempotent by checking the software versions below.\n\n* nginx\n* PCRE\n* zlib\n* OpenSSL\n\nOn the other hand, `-idempotent` does not cover versions of 3rd party modules and dynamic linked libraries.\n\n## Build OpenResty\n\n`nginx-build` supports to build [OpenResty](https://openresty.org/).\n\n```bash\n$ nginx-build -d work -openresty -pcre -openssl\n```\n\nIf you don't install PCRE and OpenSSL on your system, it is required to add the option `-pcre` and `-openssl`.\n\n\nAnd there is the limitation for the support of OpenResty.\n`nginx-build` does not allow to use OpenResty's unique configure options directly.\nIf you want to use OpenResty's unique configure option, [Configuration for building nginx](#configuration-for-building-nginx) is helpful.\n\n## Build Custom nginx Sources\n\n`nginx-build` supports building custom nginx sources through `-customnginx`.\n\n```bash\n$ nginx-build -d work \\\n  -customnginx https://github.com/example/nginx.git \\\n  -customnginxname nginx-feature \\\n  -customnginxtag feature/http3 \\\n  -pcre \\\n  -zlib \\\n  -openssl\n```\n\nIf you don't install PCRE, zlib, and OpenSSL on your system, it is required to add `-pcre`, `-zlib`, and `-openssl`.\nYou can use `-patch customnginx=/path/to/patch.diff`, or `-patch \u003ccustomnginxname\u003e=/path/to/patch.diff` when `-customnginxname` is set.\n\n## Build Angie\n\n`nginx-build` supports building [Angie](https://github.com/webserver-llc/angie) through `-customnginx`.\n\n```bash\n$ nginx-build -d work \\\n  -customnginx https://github.com/webserver-llc/angie.git \\\n  -customnginxname angie \\\n  -customnginxtag Angie-1.11.3 \\\n  -pcre \\\n  -zlib \\\n  -openssl\n```\n\nIf you don't install PCRE, zlib, and OpenSSL on your system, it is required to add `-pcre`, `-zlib`, and `-openssl`.\nYou can also use `-patch angie=/path/to/patch.diff` when `-customnginxname angie` is set.\n\n## Build freenginx\n\n`nginx-build` supports to build [freenginx](https://freenginx.org/).\n\n```bash\n$ nginx-build -d work -freenginx -openssl\n```\n\nIf you don't install OpenSSL on your system, it is required to add the option `-openssl`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcubicdaiya%2Fnginx-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcubicdaiya%2Fnginx-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcubicdaiya%2Fnginx-build/lists"}