]> Dogcows Code - chaz/chatty/blob - extra/nginx.conf
fix some inaccuracies in the documentation
[chaz/chatty] / extra / nginx.conf
1 user nginx nginx;
2 worker_processes 1;
3
4 error_log /var/log/nginx/error_log info;
5
6 events {
7 worker_connections 1024;
8 use epoll;
9 }
10
11 http {
12 include /etc/nginx/mime.types;
13 default_type application/octet-stream;
14
15 log_format main
16 '$remote_addr - $remote_user [$time_local] '
17 '"$request" $status $bytes_sent '
18 '"$http_referer" "$http_user_agent" '
19 '"$gzip_ratio"';
20
21 client_header_timeout 10m;
22 client_body_timeout 10m;
23 send_timeout 10m;
24
25 connection_pool_size 256;
26 client_header_buffer_size 1k;
27 large_client_header_buffers 4 2k;
28 request_pool_size 4k;
29
30 gzip on;
31 gzip_min_length 1100;
32 gzip_buffers 4 8k;
33 gzip_types text/plain;
34
35 output_buffers 1 32k;
36 postpone_output 1460;
37
38 sendfile on;
39 tcp_nopush on;
40 tcp_nodelay on;
41
42 keepalive_timeout 75 20;
43
44 ignore_invalid_headers on;
45
46 index index.html;
47
48 server {
49 listen 80;
50 server_name chatty.com;
51
52 access_log /var/log/nginx/chatty main;
53 error_log /var/log/nginx/chatty info;
54
55 location / {
56 proxy_set_header Host $http_host;
57 proxy_set_header X-Forwarded-Host $http_host;
58 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
59 #proxy_set_header X-Forwarded-Port 443;
60 proxy_set_header X-Real-IP $remote_addr;
61 proxy_pass http://localhost:3000/;
62 }
63 }
64
65 server {
66 listen 80;
67 server_name data.chatty.com;
68
69 access_log /var/log/nginx/chatty main;
70 error_log /var/log/nginx/chatty info;
71
72 location / {
73 proxy_buffering off;
74 proxy_pass http://localhost:4670/;
75 }
76 }
77
78 # SSL example
79 #server {
80 # listen 127.0.0.1:443;
81 # server_name localhost;
82
83 # ssl on;
84 # ssl_certificate /etc/ssl/nginx/nginx.pem;
85 # ssl_certificate_key /etc/ssl/nginx/nginx.key;
86
87 # access_log /var/log/nginx/localhost.ssl_access_log main;
88 # error_log /var/log/nginx/localhost.ssl_error_log info;
89
90 # root /var/www/localhost/htdocs;
91 #}
92 }
This page took 0.035849 seconds and 4 git commands to generate.