Skip to content

Commit

Permalink
feat(core): add ngx_brotli module
Browse files Browse the repository at this point in the history
  • Loading branch information
oowl committed Jan 18, 2024
1 parent 0c5fe19 commit b54d479
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/openresty/BUILD.openresty.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ CONFIGURE_OPTIONS = [
"--add-module=$$EXT_BUILD_ROOT$$/external/lua-kong-nginx-module/stream",
"--add-module=$$EXT_BUILD_ROOT$$/external/lua-resty-lmdb",
"--add-module=$$EXT_BUILD_ROOT$$/external/lua-resty-events",
"--add-module=$$EXT_BUILD_ROOT$$/external/ngx_brotli",
] + select({
"@kong//:aarch64-linux-anylibc-cross": [
"--crossbuild=Linux:aarch64",
Expand Down Expand Up @@ -261,6 +262,7 @@ configure_make(
"@lua-resty-lmdb//:all_srcs",
"@lua-resty-events//:all_srcs",
"@openresty_binding//:all_srcs",
"@ngx_brotli//:all_srcs",
] + select({
"@kong//:wasmx_flag": [
"@ngx_wasm_module//:all_srcs",
Expand Down
9 changes: 9 additions & 0 deletions build/openresty/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ def openresty_repositories():
recursive_init_submodules = True,
)

maybe(
new_git_repository,
name = "ngx_brotli",
branch = KONG_VAR["NGX_BROTLI"],
remote = "https://github.com/google/ngx_brotli",
build_file_content = _NGINX_MODULE_DUMMY_FILE,
recursive_init_submodules = True,
)

def _openresty_binding_impl(ctx):
ctx.file("BUILD.bazel", _NGINX_MODULE_DUMMY_FILE)
ctx.file("WORKSPACE", "workspace(name = \"openresty_patch\")")
Expand Down

0 comments on commit b54d479

Please sign in to comment.