-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
47 lines (35 loc) · 885 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
daemon off;
worker_processes 2;
# user www-data;
events {
use epoll;
worker_connections 128;
}
error_log error.log info;
http {
server_tokens off;
include mime.types;
charset utf-8;
access_log access.log combined;
server {
server_name localhost;
listen 127.0.0.1:8090;
error_page 500 502 503 504 /50x.html;
# keepalive_timeout 0;
# limiter server conf
limiter_redis_host 127.0.0.1;
limiter_redis_port 6379;
limiter_redis_pass devpass;
limiter_redis_db 1;
limiter_max 5;
limiter_expired 20;
location / {
root html;
index index.html;
}
location /test-rate-limit {
# keepalive_requests 1;
limiter;
}
}
}