4 error_log /var/log/nginx/error_log info;
7 worker_connections 1024;
12 include /etc/nginx/mime.types;
13 default_type application/octet-stream;
16 '$remote_addr - $remote_user [$time_local] '
17 '"$request" $status $bytes_sent '
18 '"$http_referer" "$http_user_agent" '
21 client_header_timeout 10m;
22 client_body_timeout 10m;
25 connection_pool_size 256;
26 client_header_buffer_size 1k;
27 large_client_header_buffers 4 2k;
33 gzip_types text/plain;
42 keepalive_timeout 75 20;
44 ignore_invalid_headers on;
50 server_name chatty.com;
52 access_log /var/log/nginx/chatty main;
53 error_log /var/log/nginx/chatty info;
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/;
67 server_name data.chatty.com;
69 access_log /var/log/nginx/chatty main;
70 error_log /var/log/nginx/chatty info;
74 proxy_pass http://localhost:4670/;
80 # listen 127.0.0.1:443;
81 # server_name localhost;
84 # ssl_certificate /etc/ssl/nginx/nginx.pem;
85 # ssl_certificate_key /etc/ssl/nginx/nginx.key;
87 # access_log /var/log/nginx/localhost.ssl_access_log main;
88 # error_log /var/log/nginx/localhost.ssl_error_log info;
90 # root /var/www/localhost/htdocs;