31aae6
# For more information on configuration, see:
31aae6
#   * Official English Documentation: http://nginx.org/en/docs/
31aae6
#   * Official Russian Documentation: http://nginx.org/ru/docs/
31aae6
31aae6
user nginx;
31aae6
worker_processes auto;
31aae6
error_log /var/log/nginx/error.log notice;
31aae6
pid /run/nginx.pid;
31aae6
31aae6
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
31aae6
include /usr/share/nginx/modules/*.conf;
31aae6
31aae6
events {
31aae6
    worker_connections 1024;
31aae6
}
31aae6
31aae6
http {
31aae6
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
31aae6
                      '$status $body_bytes_sent "$http_referer" '
31aae6
                      '"$http_user_agent" "$http_x_forwarded_for"';
31aae6
31aae6
    access_log  /var/log/nginx/access.log  main;
31aae6
31aae6
    sendfile            on;
31aae6
    tcp_nopush          on;
31aae6
    keepalive_timeout   65;
31aae6
    types_hash_max_size 4096;
31aae6
31aae6
    include             /etc/nginx/mime.types;
31aae6
    default_type        application/octet-stream;
31aae6
31aae6
    # Load modular configuration files from the /etc/nginx/conf.d directory.
31aae6
    # See http://nginx.org/en/docs/ngx_core_module.html#include
31aae6
    # for more information.
31aae6
    include /etc/nginx/conf.d/*.conf;
31aae6
31aae6
    server {
31aae6
        listen       80;
31aae6
        listen       [::]:80;
31aae6
        server_name  _;
31aae6
        root         /usr/share/nginx/html;
31aae6
31aae6
        # Load configuration files for the default server block.
31aae6
        include /etc/nginx/default.d/*.conf;
31aae6
31aae6
        error_page 404 /404.html;
31aae6
        location = /404.html {
31aae6
        }
31aae6
31aae6
        error_page 500 502 503 504 /50x.html;
31aae6
        location = /50x.html {
31aae6
        }
31aae6
    }
31aae6
31aae6
# Settings for a TLS enabled server.
31aae6
#
31aae6
#    server {
31aae6
#        listen       443 ssl http2;
31aae6
#        listen       [::]:443 ssl http2;
31aae6
#        server_name  _;
31aae6
#        root         /usr/share/nginx/html;
31aae6
#
31aae6
#        ssl_certificate "/etc/pki/nginx/server.crt";
31aae6
#        ssl_certificate_key "/etc/pki/nginx/private/server.key";
31aae6
#        ssl_session_cache shared:SSL:1m;
31aae6
#        ssl_session_timeout  10m;
31aae6
#        ssl_ciphers PROFILE=SYSTEM;
31aae6
#        ssl_prefer_server_ciphers on;
31aae6
#
31aae6
#        # Load configuration files for the default server block.
31aae6
#        include /etc/nginx/default.d/*.conf;
31aae6
#
31aae6
#        error_page 404 /404.html;
31aae6
#        location = /404.html {
31aae6
#        }
31aae6
#
31aae6
#        error_page 500 502 503 504 /50x.html;
31aae6
#        location = /50x.html {
31aae6
#        }
31aae6
#    }
31aae6
31aae6
}
31aae6