Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nginx limit_req delay #579

Closed
isuldor opened this issue Dec 22, 2019 · 1 comment · Fixed by #580
Closed

nginx limit_req delay #579

isuldor opened this issue Dec 22, 2019 · 1 comment · Fixed by #580

Comments

@isuldor
Copy link
Contributor

isuldor commented Dec 22, 2019

The sample-nginx.conf file has limit_req zone=stakepool burst=16; configured, which seems to be a newer feature, unavailable in nginx provided by the debian 10 repos. This isn't really a bug, but thought I'd at least make a note of it.

# nginx -t
nginx: [emerg] invalid parameter "delay=36" in /etc/nginx/conf.d/test.stakey.net.conf:38                                            
nginx: configuration file /etc/nginx/nginx.conf test failed
# nginx -v
nginx version: nginx/1.14.2
@chappjc
Copy link
Member

chappjc commented Dec 23, 2019

The problem seems to be the delay in limit_req zone=stakepool burst=48 delay=36;. It seems the delay parameter was added in 1.15.7. The user can either remove delay, or get nginx from the nginx.org repo at http://nginx.org/packages/mainline/debian
Probably worth a comment in the sample config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants