File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,6 +63,10 @@ get_src 501f299abdb81b992a980bda182e5de5a4b2b3e275fbf72ee34dd7ae84c4b679 \
6363get_src 8d280fc083420afb41dbe10df9a8ceec98f1d391bd2caa42ebae67d5bc9295d8 \
6464 " https://github.com/openresty/set-misc-nginx-module/archive/v$VERSION_SETMISC .tar.gz"
6565
66+ # replace with a release instead a commit once e06a618e5780b4b94b21cab37d61820dcd3bb585 is contained in one.
67+ get_src 47340cf0c711b10a0231fca9264d73ea791ff8420b823b0295ae3df2d968a205 \
68+ " https://github.com/vozlt/nginx-module-vts/archive/22c51e201a550bb94e96239fef541347beb4eeca.tar.gz"
69+
6670# build nginx
6771cd " $BUILD_PATH /$VERSION_NGINX "
6872
@@ -88,6 +92,7 @@ cd "$BUILD_PATH/$VERSION_NGINX"
8892 --add-module=" $BUILD_PATH /naxsi-$VERSION_NAXSI /naxsi_src" \
8993 --add-module=" $BUILD_PATH /ngx_devel_kit-$VERSION_NDK " \
9094 --add-module=" $BUILD_PATH /set-misc-nginx-module-$VERSION_SETMISC " \
95+ --add-module=" $BUILD_PATH /nginx-module-vts-22c51e201a550bb94e96239fef541347beb4eeca" \
9196 && make && make install
9297
9398mv /tmp/firewall /opt/nginx/firewall
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ events {
1313
1414http {
1515 # basic settings
16+ vhost_traffic_status_zone;
17+
1618 sendfile on;
1719 tcp_nopush on;
1820 tcp_nodelay on;
@@ -329,8 +331,8 @@ http {
329331 return 200 ;
330332 }
331333 location /router-nginx-status {
332- stub_status on ;
333- return 200 ;
334+ vhost_traffic_status_display ;
335+ vhost_traffic_status_display_format html ;
334336 }
335337 location / {
336338 return 404 ;
You can’t perform that action at this time.
0 commit comments