Skip to content

Commit

Permalink
add backup.pb.c to config
Browse files Browse the repository at this point in the history
  • Loading branch information
zhwaaaaaa committed Sep 4, 2024
1 parent 1da1868 commit 59019d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@ set -e
rm -rf nginx
rm -rf objs

curl -sSL https://nginx.org/download/nginx-1.20.2.tar.gz -o nginx.tar.gz
nginx_version=1.20.2
curl -sSL https://nginx.org/download/nginx-${nginx_version}.tar.gz -o nginx.tar.gz

tar zxvf nginx.tar.gz
mv nginx-1.20.2 nginx
mv nginx-${nginx_version} nginx
cp -r modules nginx/modules
cd nginx
patch -p1 < ../patch/nginx.patch


./configure \
--with-http_v2_module \
--with-http_ssl_module \
--add-module=../modules/auxiliary \
--add-module=../modules/nacos \
--add-module=modules/auxiliary \
--add-module=modules/nacos \
--prefix=.. \
--conf-path=conf/my.conf \
--error-log-path=objs/logs/error.log \
Expand All @@ -27,9 +29,7 @@ patch -p1 < ../patch/nginx.patch
--http-proxy-temp-path=objs/proxy_temp \
--http-fastcgi-temp-path=objs/fastcgi_temp \
--http-uwsgi-temp-path=objs/uwsgi_temp \
--http-scgi-temp-path=objs/scgi_temp \
--with-pcre=/opt/homebrew/Cellar/pcre \
--with-openssl=/opt/homebrew/Cellar/openssl\@3
--http-scgi-temp-path=objs/scgi_temp

cd ..

Expand Down
1 change: 1 addition & 0 deletions modules/nacos/config
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ngx_module_srcs="modules/nacos/yaij/yajl.c \
modules/nacos/ngx_nacos_data.c \
modules/nacos/ngx_nacos_udp.c \
modules/nacos/ngx_nacos_grpc.c \
modules/nacos/backup.pb.c \
modules/nacos/nacos_grpc_service.pb.c"

ngx_module_libs=
Expand Down

0 comments on commit 59019d7

Please sign in to comment.