| 1 | user www-data;
|
|---|
| 2 | worker_processes auto;
|
|---|
| 3 | pid /run/nginx.pid;
|
|---|
| 4 |
|
|---|
| 5 | events {
|
|---|
| 6 | worker_connections 768;
|
|---|
| 7 | # multi_accept on;
|
|---|
| 8 | }
|
|---|
| 9 |
|
|---|
| 10 | http {
|
|---|
| 11 |
|
|---|
| 12 | ##
|
|---|
| 13 | # Basic Settings
|
|---|
| 14 | ##
|
|---|
| 15 |
|
|---|
| 16 | sendfile on;
|
|---|
| 17 | tcp_nopush on;
|
|---|
| 18 | tcp_nodelay on;
|
|---|
| 19 | keepalive_timeout 65;
|
|---|
| 20 | types_hash_max_size 2048;
|
|---|
| 21 | # server_tokens off;
|
|---|
| 22 |
|
|---|
| 23 | # server_names_hash_bucket_size 64;
|
|---|
| 24 | # server_name_in_redirect off;
|
|---|
| 25 |
|
|---|
| 26 | include /etc/nginx/mime.types;
|
|---|
| 27 | default_type application/octet-stream;
|
|---|
| 28 |
|
|---|
| 29 | ##
|
|---|
| 30 | # SSL Settings
|
|---|
| 31 | ##
|
|---|
| 32 |
|
|---|
| 33 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
|
|---|
| 34 | ssl_prefer_server_ciphers on;
|
|---|
| 35 |
|
|---|
| 36 | ##
|
|---|
| 37 | # Logging Settings
|
|---|
| 38 | ##
|
|---|
| 39 |
|
|---|
| 40 | access_log /var/log/nginx/access.log;
|
|---|
| 41 | error_log /var/log/nginx/error.log;
|
|---|
| 42 |
|
|---|
| 43 | ##
|
|---|
| 44 | # Gzip Settings
|
|---|
| 45 | ##
|
|---|
| 46 |
|
|---|
| 47 | gzip on;
|
|---|
| 48 | gzip_disable "msie6";
|
|---|
| 49 |
|
|---|
| 50 | # gzip_vary on;
|
|---|
| 51 | # gzip_proxied any;
|
|---|
| 52 | # gzip_comp_level 6;
|
|---|
| 53 | # gzip_buffers 16 8k;
|
|---|
| 54 | # gzip_http_version 1.1;
|
|---|
| 55 | # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
|---|
| 56 |
|
|---|
| 57 | ##
|
|---|
| 58 | # Virtual Host Configs
|
|---|
| 59 | ##
|
|---|
| 60 |
|
|---|
| 61 | include /etc/nginx/conf.d/*.conf;
|
|---|
| 62 | #include /etc/nginx/sites-enabled/*;
|
|---|
| 63 |
|
|---|
| 64 | client_body_timeout 1s;
|
|---|
| 65 | log_format postdata $request_body;
|
|---|
| 66 | access_log /var/log/nginx/access.log postdata;
|
|---|
| 67 | server {
|
|---|
| 68 | location = /logpost {
|
|---|
| 69 | echo_read_request_body;
|
|---|
| 70 | #access_log /var/log/nginx/push.log push_requests;
|
|---|
| 71 | proxy_pass http://127.0.0.1:80/logsink;
|
|---|
| 72 | }
|
|---|
| 73 | location = /logsink {
|
|---|
| 74 | return 200;
|
|---|
| 75 | access_log off;
|
|---|
| 76 | }
|
|---|
| 77 | }
|
|---|
| 78 | }
|
|---|
| 79 |
|
|---|
| 80 |
|
|---|
| 81 | #mail {
|
|---|
| 82 | # # See sample authentication script at:
|
|---|
| 83 | # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
|
|---|
| 84 | #
|
|---|
| 85 | # # auth_http localhost/auth.php;
|
|---|
| 86 | # # pop3_capabilities "TOP" "USER";
|
|---|
| 87 | # # imap_capabilities "IMAP4rev1" "UIDPLUS";
|
|---|
| 88 | #
|
|---|
| 89 | # server {
|
|---|
| 90 | # listen localhost:110;
|
|---|
| 91 | # protocol pop3;
|
|---|
| 92 | # proxy on;
|
|---|
| 93 | # }
|
|---|
| 94 | #
|
|---|
| 95 | # server {
|
|---|
| 96 | # listen localhost:143;
|
|---|
| 97 | # protocol imap;
|
|---|
| 98 | # proxy on;
|
|---|
| 99 | # }
|
|---|
| 100 | #}
|
|---|