Commit b873d40 1 parent 9f4a69f commit b873d40 Copy full SHA for b873d40
File tree 5 files changed +11
-42
lines changed
5 files changed +11
-42
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ COPY src/api-umbrella/web-app/package.json src/api-umbrella/web-app/pnpm-lock.ya
62
62
COPY tasks/app-deps/web-app/pnpm /app/tasks/app-deps/web-app/
63
63
RUN make app-deps:web-app:pnpm && make clean:dev
64
64
65
- COPY build/patches/lrexlib-pcre2.patch build/patches/lua-resty-openssl.patch /app/build/patches/
65
+ COPY build/patches/lrexlib-pcre2.patch /app/build/patches/
66
66
COPY tasks/app-deps/luarocks /app/tasks/app-deps/
67
67
RUN make app-deps:luarocks && make clean:dev
68
68
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ local xpcall_error_handler = require "api-umbrella.utils.xpcall_error_handler"
7
7
-- Preload modules that pgmoon may require at query() time.
8
8
require " pgmoon.arrays"
9
9
require " pgmoon.json"
10
+ require " resty.openssl"
11
+ require " resty.openssl.auxiliary.nginx"
12
+ require " resty.openssl.auxiliary.nginx_c"
10
13
11
14
local _encode_bytea = pgmoon .Postgres .encode_bytea
12
15
local _escape_identifier = pgmoon .Postgres .escape_identifier
Original file line number Diff line number Diff line change @@ -17,13 +17,6 @@ extra_args=(
17
17
18
18
luarocks_install " ./api-umbrella-git-1.rockspec" " git-1" " ${extra_args[@]} "
19
19
20
- # Temporary workaround for lua-resty-openssl and OpenResty 1.27:
21
- # https://github.com/fffonion/lua-resty-openssl/pull/200
22
- (
23
- cd " ${APP_VENDOR_LUA_SHARE_DIR} /resty/openssl"
24
- patch -p4 < " $SOURCE_DIR /build/patches/lua-resty-openssl.patch"
25
- )
26
-
27
20
# lrexlib-pcre2
28
21
(
29
22
lrexlib_pcre2_version=" 2.9.2-1"
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ lua_resty_openssl_aux_module_version=" 0.3.0"
4
+ lua_resty_openssl_aux_module_hash=" 535cda86ca5f326479fb9870288ca8f6ecd94e579374e6686d8fe508872dd4ce"
3
5
ngx_http_geoip2_module_version=" 3.4"
4
6
ngx_http_geoip2_module_hash=" 82d4beef48c260c3568eb0ae56451c95"
5
7
openresty_version=" 1.27.1.1"
@@ -16,6 +18,9 @@ extract_download "openresty-$openresty_version.tar.gz"
16
18
download " https://github.com/leev/ngx_http_geoip2_module/archive/$ngx_http_geoip2_module_version .tar.gz" " md5" " $ngx_http_geoip2_module_hash "
17
19
extract_download " $ngx_http_geoip2_module_version .tar.gz"
18
20
21
+ download " https://github.com/fffonion/lua-resty-openssl-aux-module/archive/refs/tags/$lua_resty_openssl_aux_module_version .tar.gz" " sha256" " $lua_resty_openssl_aux_module_hash "
22
+ extract_download " $lua_resty_openssl_aux_module_version .tar.gz"
23
+
19
24
cd " openresty-$openresty_version "
20
25
patch -p1 < " $SOURCE_DIR /build/patches/openresty-cli.patch"
21
26
@@ -51,6 +56,8 @@ patch -p1 < "$SOURCE_DIR/build/patches/openresty-cli.patch"
51
56
--with-threads \
52
57
--with-luajit-xcflags=" -DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT" \
53
58
--add-module=" ../ngx_http_geoip2_module-$ngx_http_geoip2_module_version " \
59
+ --add-module=" ../lua-resty-openssl-aux-module-$lua_resty_openssl_aux_module_version " \
60
+ --add-module=" ../lua-resty-openssl-aux-module-$lua_resty_openssl_aux_module_version /stream" \
54
61
-j" $NPROC "
55
62
make -j" $NPROC "
56
63
make install DESTDIR=" $STAGE_DIR "
You can’t perform that action at this time.
0 commit comments