Skip to content

Commit

Permalink
Merge pull request #7 from WGrape/test
Browse files Browse the repository at this point in the history
feat: add limit_traffic lua support
  • Loading branch information
WGrape authored Jan 19, 2023
2 parents d6a3a8a + f0df487 commit b4e2693
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vhosts/ngxway.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ server {
access_log /dist/logs/ngxway.access.$date.log;
error_log /dist/logs/ngxway.error.log error; # error_log not support variable, such as /dist/logs/ngxway.error.$date.log

access_by_lua_file /dist/lua/check_sign.lua;
# access_by_lua_file /dist/lua/limit_traffic.lua;
# access_by_lua_file can only load one lua file
access_by_lua_block {
loadfile('/dist/lua/check_sign.lua')()
loadfile('/dist/lua/limit_traffic.lua')()
}

location / {
root /dist/html/;
Expand Down

0 comments on commit b4e2693

Please sign in to comment.