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