This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
events { | |
worker_connections 1024; | |
} | |
error_log stderr; | |
http { | |
limit_req_zone $arg_token zone=mylimit:10m rate=1r/m; | |
server { | |
listen 8080; | |
location /api0 { | |
default_type 'text/plain'; | |
limit_req zone=mylimit; | |
content_by_lua_block { | |
ngx.say("hello world") | |
} | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment