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