Advertisement
Guest User

Untitled

a guest
May 19th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 5.35 KB | None | 0 0
  1. worker_processes  48;
  2. worker_rlimit_nofile 100000;
  3.  
  4. events {
  5.     worker_connections  100000;
  6.     use epoll;
  7.     multi_accept on;
  8. }
  9.  
  10. http {
  11.     tcp_nopush on;
  12.     tcp_nodelay on;
  13.     reset_timedout_connection on;
  14.     keepalive_requests 100000;
  15.     include       mime.types;
  16.     default_type  application/octet-stream;
  17.     sendfile        on;
  18.     keepalive_timeout  65;
  19.     gzip on;
  20.     gzip_comp_level 5;
  21.     gzip_min_length 256;
  22.     gzip_proxied any;
  23.     gzip_vary on;
  24.     gzip_types
  25.     application/atom+xml
  26.     application/javascript
  27.     application/json
  28.     application/ld+json
  29.     application/manifest+json
  30.     application/rss+xml
  31.     application/vnd.geo+json
  32.     application/vnd.ms-fontobject
  33.     application/x-font-ttf
  34.     application/x-web-app-manifest+json
  35.     application/xhtml+xml
  36.     application/xml
  37.     font/opentype
  38.     image/bmp
  39.     image/svg+xml
  40.     image/x-icon
  41.     text/cache-manifest
  42.     text/css
  43.     text/plain
  44.     text/vcard
  45.     text/vnd.rim.location.xloc
  46.     text/vtt
  47.     text/x-component
  48.     text/x-cross-domain-policy;
  49.     gzip_disable "MSIE [1-6]\.";
  50.     client_body_timeout 12;
  51.     client_header_timeout 12;
  52.     send_timeout 10;
  53.     open_file_cache          max=2000 inactive=20s;
  54.     open_file_cache_valid    60s;
  55.     open_file_cache_min_uses 5;
  56.     open_file_cache_errors   off;
  57.  
  58.     log_format compression '$status - $remote_addr - $time_local - $request - $http_user_agent - $bytes_sent - $cookie___cfduid';          
  59.  
  60.                                
  61.     server {
  62.         listen 127.0.0.1:30181 ssl;
  63.         listen 127.0.0.1:30180;
  64.         ssl_certificate /media/sdh1/frost4hd/ssl/nginx-selfsigned.crt;
  65.         ssl_certificate_key /media/sdh1/frost4hd/ssl/nginx-selfsigned.key;
  66.         ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  67.         ssl_prefer_server_ciphers on;
  68.         ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  69.         ssl_ecdh_curve secp384r1;
  70.         ssl_session_cache shared:SSL:10m;
  71.         ssl_session_tickets off;
  72.         ssl_stapling_verify on;
  73.         resolver 8.8.8.8 8.8.4.4 valid=300s;
  74.         resolver_timeout 5s;
  75.         add_header Strict-Transport-Security "max-age=63072000; includeSubdomains";
  76.         add_header X-Frame-Options DENY;
  77.         add_header X-Content-Type-Options nosniff;
  78.         ssl_dhparam /media/sdh1/frost4hd/ssl/dhparam.pem;
  79.         server_name  batwkmnzbooter66.onion;
  80.         error_log  off;
  81.         access_log  off;
  82.        
  83.         location / {
  84.             root   html;
  85.             index  index.html index.htm index.php;
  86.         }
  87.    
  88.         location ~ .php$ {
  89.             fastcgi_pass   unix:/media/sdh1/frost4hd/var/run/php5-fpm.sock;
  90.             fastcgi_index  index.php;
  91.             fastcgi_param   SCRIPT_FILENAME    $document_root$fastcgi_script_name;
  92.             fastcgi_param   SCRIPT_NAME        $fastcgi_script_name;
  93.             fastcgi_buffer_size 128k;
  94.             fastcgi_buffers 256 16k;
  95.             fastcgi_busy_buffers_size 256k;
  96.             fastcgi_temp_file_write_size 256k;
  97.             include fastcgi_params;
  98.         }
  99.        
  100.         error_page   500 502 503 504  /50x.html;
  101.        
  102.         location = /50x.html {
  103.             root   html;
  104.         }
  105.        
  106.         location ~* \.(jpg|jpeg|gif|png|css|js|ico|pdf|xml)$ {
  107.             access_log        off;
  108.             log_not_found     off;
  109.             expires           7d;
  110.         }
  111.     }
  112.    
  113.     server {
  114.         error_log  off;
  115.         access_log  off;
  116.         listen ;
  117.         server_name _;
  118.         location / {
  119.             root   html/trap;
  120.             index  index.html index.htm;
  121.         }
  122.        
  123.         location /nginx_status {
  124.             stub_status on;
  125.             access_log   off;
  126.         }
  127.     }
  128.  
  129.     server {
  130.     default_type text/html;
  131.         if ($cookie___cfduid !~ "^d" ) {
  132.             return 200 '<title>Frost4HD.com</title>Please Wait...<meta http-equiv="refresh" content="3">';
  133.         }
  134.        
  135.        
  136.         listen ;
  137.         server_name frost4hd.com www.frost4hd.com;
  138.         root   html/frost4hd.com;
  139.         index index.html index.php;
  140.         error_log  /media/sdh1/frost4hd/var/log/nginx/nginx_error.log;
  141.         access_log  /media/sdh1/frost4hd/var/log/nginx/nginx_ddos.log compression;
  142.         set_real_ip_from 103.21.244.0/22;
  143.         set_real_ip_from 103.22.200.0/22;
  144.         set_real_ip_from 103.31.4.0/22;
  145.         set_real_ip_from 104.16.0.0/12;
  146.         set_real_ip_from 108.162.192.0/18;
  147.         set_real_ip_from 131.0.72.0/22;
  148.         set_real_ip_from 141.101.64.0/18;
  149.         set_real_ip_from 162.158.0.0/15;
  150.         set_real_ip_from 172.64.0.0/13;
  151.         set_real_ip_from 173.245.48.0/20;
  152.         set_real_ip_from 188.114.96.0/20;
  153.         set_real_ip_from 190.93.240.0/20;
  154.         set_real_ip_from 197.234.240.0/22;
  155.         set_real_ip_from 198.41.128.0/17;
  156.         set_real_ip_from 137.117.161.249/32;
  157.         set_real_ip_from 118.217.171.183/32;
  158.         set_real_ip_from 35.192.85.20/32;
  159.         real_ip_header CF-Connecting-IP;
  160.        
  161.         location = /favicon.ico {
  162.                 log_not_found off;
  163.                 access_log off;
  164.         }
  165.        
  166.         location /nginx_status {
  167.             stub_status on;
  168.             access_log   off;
  169.         }
  170.        
  171.         location = /robots.txt {
  172.                 allow all;
  173.                 log_not_found off;
  174.                 access_log off;
  175.         }
  176.        
  177.         location / {
  178.                 try_files $uri $uri/ /index.php?$args;
  179.         }
  180.        
  181.         location ~ ^/\.user\.ini {
  182.             deny all;
  183.         }
  184.  
  185.         location ~ \.php$ {
  186.                 include fastcgi.conf;
  187.                 fastcgi_intercept_errors on;
  188.                 fastcgi_pass   unix:/media/sdh1/frost4hd/var/run/php5-fpm.sock;
  189.         }
  190.  
  191.         location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
  192.                 expires max;
  193.                 log_not_found off;
  194.         }
  195.     }  
  196. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement