Your IP : 18.221.83.96


Current Path : /etc/nginx/
Upload File :
Current File : //etc/nginx/nginx.conf

user www-data;
worker_processes 1;

daemon off;

events {
    use epoll;
    worker_connections 8192;
    multi_accept on;
}

pid  /var/run/nginx.pid;

http {
    tcp_nopush on;
    tcp_nodelay on;
    types_hash_max_size 2048;
    client_max_body_size 512m;
    client_body_timeout 15;
    client_header_timeout 15;
    client_body_temp_path /tmp 1 2;
    client_body_buffer_size 256k;

    # Show client's IP in logs
    set_real_ip_from  127.0.0.1;
    set_real_ip_from  10.0.0.0/8;
    real_ip_header    X-Forwarded-For;
    real_ip_recursive on;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;
    # Special font mime types
    types {
        application/x-font-ttf           ttc ttf;
        application/x-font-otf           otf;
    }

    sendfile on;

    port_in_redirect off;

    keepalive_timeout 65;

    server_tokens off;

    map $http_user_agent $auth_type {
        default "Restricted";
        ~^Go-http-client "off";
        ~^kube-probe "off";
    }

    limit_req_status 403;
    limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
    limit_req_zone $binary_remote_addr zone=wp:10m rate=3r/s;

    include common/headers-http.conf;
    include /etc/nginx/conf.d/*.conf;
}