Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 86 lines (67 sloc) 2.884 kB
0680cb2 @yuri-gushin initial commit - Roboo, ready to kick some robot ass
authored
1 user nobody nobody;
2 worker_processes 2;
3 worker_rlimit_nofile 8000;
4
5 events {
6 worker_connections 8192;
7 }
8
9 http {
10e9350 @yuri-gushin Documentation improvements
authored
10 perl_modules /opt/local/share/nginx;
11 perl_require Roboo.pm;
12
13 include /opt/local/etc/nginx/mime.types;
0680cb2 @yuri-gushin initial commit - Roboo, ready to kick some robot ass
authored
14 default_type application/octet-stream;
15
10e9350 @yuri-gushin Documentation improvements
authored
16 log_format main '$remote_addr - $remote_user [$time_local] "$request" $status $bytes_sent "$http_referer" "$http_user_agent" "$gzip_ratio"';
0680cb2 @yuri-gushin initial commit - Roboo, ready to kick some robot ass
authored
17
18 client_header_timeout 10m;
19 client_body_timeout 10m;
20 send_timeout 10m;
21
22 connection_pool_size 256;
23 client_header_buffer_size 1k;
24 client_body_buffer_size 16k;
25 large_client_header_buffers 4 16k;
26 request_pool_size 4k;
27
28 gzip off;
10e9350 @yuri-gushin Documentation improvements
authored
29 gzip_min_length 0;
0680cb2 @yuri-gushin initial commit - Roboo, ready to kick some robot ass
authored
30 gzip_buffers 4 8k;
31 gzip_types text/plain application/x-shockwave-flash text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
32 gzip_proxied any;
10e9350 @yuri-gushin Documentation improvements
authored
33 gzip_http_version 1.0;
34 output_buffers 1 32k;
0680cb2 @yuri-gushin initial commit - Roboo, ready to kick some robot ass
authored
35 postpone_output 1460;
36
37 sendfile on;
38 tcp_nopush on;
39 tcp_nodelay on;
40
41 keepalive_timeout 75 20;
42
43 ignore_invalid_headers on;
44
45 server_tokens off;
46 proxy_cache_path /opt/local/share/nginx/cache levels=1:2 keys_zone=cache:10m inactive=10m max_size=1000m;
bcb7d80 @yuri-gushin Added user-specified Roboo_secret support (scalable Roboo scenario) -…
authored
47
10e9350 @yuri-gushin Documentation improvements
authored
48
0680cb2 @yuri-gushin initial commit - Roboo, ready to kick some robot ass
authored
49 server {
50 listen 80;
51 server_name _;
bcb7d80 @yuri-gushin Added user-specified Roboo_secret support (scalable Roboo scenario) -…
authored
52
53 access_log /dev/null;
54
0680cb2 @yuri-gushin initial commit - Roboo, ready to kick some robot ass
authored
55 location / {
56 perl Roboo::handler;
2e067f5 @yuri-gushin Added:
authored
57 set $Roboo_challenge_modes "SWF,gzip"; # SWF or JS, optionally gzip for encoding ("JS,gzip" or "SWF,gzip")
10e9350 @yuri-gushin Documentation improvements
authored
58
59 # Defaults
2e067f5 @yuri-gushin Added:
authored
60 #set $Roboo_cookie_name "Anti-Robot"; # Cookie name used for challenge/response
61 #set $Roboo_validity_window 600; # Authentication validity time window
62 #set $Roboo_whitelist "IP(),UA(''),URI('')"; # Whitelist - IP addresses (CIDR), user-agents or URIs (PCRE)
63 #set $Roboo_charset "UTF-8"; # Charset used during challenge (for proper POST resubmissions)
64 #set $Roboo_challenge_hash_input $remote_addr; # Advanced - challenge hash basis, can add $server_name$server_port$http_host$http_user_agent
65
10e9350 @yuri-gushin Documentation improvements
authored
66 error_page 555 = @proxy;
0680cb2 @yuri-gushin initial commit - Roboo, ready to kick some robot ass
authored
67 expires epoch;
68 add_header Last-Modified "";
10e9350 @yuri-gushin Documentation improvements
authored
69 if ($Roboo_challenge_modes ~ gzip) {
0680cb2 @yuri-gushin initial commit - Roboo, ready to kick some robot ass
authored
70 gzip on;
71 }
bcb7d80 @yuri-gushin Added user-specified Roboo_secret support (scalable Roboo scenario) -…
authored
72 access_log /var/log/nginx/challenged.log;
0680cb2 @yuri-gushin initial commit - Roboo, ready to kick some robot ass
authored
73 }
74
10e9350 @yuri-gushin Documentation improvements
authored
75 location @proxy {
76 proxy_pass http://example.com;
0680cb2 @yuri-gushin initial commit - Roboo, ready to kick some robot ass
authored
77 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
78 proxy_set_header Host $host;
79 proxy_cache cache;
80 proxy_cache_valid 5m;
81 gzip on;
bcb7d80 @yuri-gushin Added user-specified Roboo_secret support (scalable Roboo scenario) -…
authored
82 access_log /var/log/nginx/verified.log;
0680cb2 @yuri-gushin initial commit - Roboo, ready to kick some robot ass
authored
83 }
84 }
85 }
Something went wrong with that request. Please try again.