| a | b | |
|---|
| 0 | + | # cat /etc/nginx/nginx.conf |
|---|
| 0 | + | # timelines-config |
|---|
| 0 | + | worker_processes 1; |
|---|
| 0 | + | user www-data www-data; |
|---|
| 0 | + | pid /var/run/nginx.pid; |
|---|
| 0 | + | |
|---|
| 0 | + | events { |
|---|
| 0 | + | worker_connections 1024; |
|---|
| 0 | + | } |
|---|
| 0 | + | |
|---|
| 0 | + | http { |
|---|
| 0 | + | access_log /var/log/nginx/access.log; |
|---|
| 0 | + | error_log /var/log/nginx/error.log; |
|---|
| 0 | + | include mime.types; |
|---|
| 0 | + | default_type application/octet-stream; |
|---|
| 0 | + | sendfile on; |
|---|
| 0 | + | tcp_nopush on; |
|---|
| 0 | + | keepalive_timeout 65; |
|---|
| 0 | + | gzip on; |
|---|
| 0 | + | gzip_comp_level 2; |
|---|
| 0 | + | gzip_buffers 16 8k; |
|---|
| 0 | + | gzip_disable "MSIE [1-6]\."; |
|---|
| 0 | + | gzip_proxied any; |
|---|
| 0 | + | gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; |
|---|
| 0 | + | |
|---|
| 0 | + | server { |
|---|
| 0 | + | listen 80; |
|---|
| 0 | + | location / { |
|---|
| 0 | + | proxy_pass http://localhost:5984; |
|---|
| 0 | + | proxy_redirect off; |
|---|
| 0 | + | proxy_set_header Host $host; |
|---|
| 0 | + | proxy_set_header X-Real-IP $remote_addr; |
|---|
| 0 | + | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|---|
| 0 | + | } |
|---|
| 0 | + | } |
|---|
| 0 | + | } |
|---|
| ... | |
|---|