]> git.pld-linux.org Git - packages/nginx.git/commitdiff
update config from fedora
authorElan Ruusamäe <glen@delfi.ee>
Wed, 19 Oct 2016 19:39:16 +0000 (22:39 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 19 Oct 2016 19:39:16 +0000 (22:39 +0300)
and do not format with tabs (indent is ok), looks different everywhere

nginx.conf

index ad34fa266f8e77af9d2b1601148a0ecb12351d88..bf85aaa880e6bfb949b615a2378fb7eabd21cde9 100644 (file)
@@ -1,26 +1,45 @@
-user                   nginx nginx;
-error_log              /var/log/nginx/error.log;
-pid                    /var/run/nginx.pid;
+# For more information on configuration, see:
+#   * Official English Documentation: http://nginx.org/en/docs/
+#   * Official Russian Documentation: http://nginx.org/ru/docs/
+
+user nginx nginx;
+worker_processes auto;
+error_log /var/log/nginx/error.log;
+pid /var/run/nginx.pid;
 
 events {
-       worker_connections      2048;
+       worker_connections 2048;
        use epoll;
 }
 
 http {
-       include         /etc/nginx/mime.types;
-       default_type    application/octet-stream;
+       log_format main '$remote_addr - $remote_user [$time_local] $request '
+                       '"$status" $body_bytes_sent "$http_referer" '
+                       '"$http_user_agent" "$http_x_forwarded_for"';
+       access_log /var/log/nginx/access.log main;
+
+       sendfile on;
+       tcp_nopush on;
+       tcp_nodelay on;
+       keepalive_timeout 65;
+       types_hash_max_size 2048;
+
+       include /etc/nginx/mime.types;
+       default_type application/octet-stream;
 
-       log_format      main    '$remote_addr - $remote_user [$time_local] $request '
-                               '"$status" $body_bytes_sent "$http_referer" '
-                               '"$http_user_agent" "$http_x_forwarded_for"';
-       access_log      /var/log/nginx/access.log       main;
+       # Load modular configuration files from the /etc/nginx/conf.d directory.
+       # See http://nginx.org/en/docs/ngx_core_module.html#include
+       # for more information.
+       include /etc/nginx/conf.d/*.conf;
 
        server {
-               listen          80;
-               # listen 443 ssl;
+               listen 80 default_server;
+               listen [::]:80 default_server;
+               server_name  _;
 
                # https://wiki.mozilla.org/Security/Server_Side_TLS
+               #listen 443 ssl http2 default_server;
+               #listen [::]:443 ssl http2 default_server;
 
                # Certs sent to the client in SERVER HELLO are concatenated in ssl_certificate
                #ssl_certificate /etc/nginx/server.crt;
@@ -59,6 +78,7 @@ http {
                        index   index.html index.htm index.php;
                }
 
+               # Load configuration files for the default server block.
                include webapps.d/*.conf;
        }
 
This page took 0.093523 seconds and 4 git commands to generate.