## # EasyEngine Settings ## server_tokens off; reset_timedout_connection on; add_header X-Powered-By "EasyEngine {{version}}"; add_header rt-Fastcgi-Cache $upstream_cache_status; # Limit Request limit_req_status 403; limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s; # Proxy Settings # set_real_ip_from proxy-server-ip; # real_ip_header X-Forwarded-For; fastcgi_read_timeout 300; client_max_body_size 100m; # SSL Settings ssl_session_cache shared:SSL:20m; ssl_session_timeout 10m; {{#Ubuntu}} ssl_prefer_server_ciphers on; {{/Ubuntu}} ssl_ciphers HIGH:!aNULL:!MD5:!kEDH; # Log format Settings log_format rt_cache '$remote_addr $upstream_response_time $upstream_cache_status [$time_local] ' '$http_host "$request" $status $body_bytes_sent ' '"$http_referer" "$http_user_agent"'; # GZip settings gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_buffers 16 8k; gzip_http_version 1.1; # Compress all output labeled with one of the following MIME-types. gzip_types application/atom+xml application/javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/plain text/x-component text/xml text/javascript; # text/html is always compressed by HttpGzipModule