Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. load_module "modules/ngx_http_htpasswd_module.so";
  2. worker_processes 1;
  3. error_log /dev/null;
  4. pid /var/run/nginx.pid;
  5.  
  6. events {
  7. worker_connections 1024;
  8. }
  9.  
  10. http {
  11. map $http_x_forwarded_proto $thescheme { default $scheme; https https; }
  12. set_real_ip_from 10.1.0.0/16; # MSK
  13. set_real_ip_from 10.3.0.0/16; # MSK
  14. set_real_ip_from 10.52.0.0/14; # MSK
  15. set_real_ip_from 195.208.0.0/23; # MSK
  16. set_real_ip_from 212.192.194.0/24; # NSK
  17. set_real_ip_from 10.12.0.0/16; # NSK
  18. set_real_ip_from 212.192.193.0/24; # NSK
  19. set_real_ip_from 10.15.0.0/16; # AMS
  20. set_real_ip_from 178.210.94.0/24; # AMS
  21. real_ip_header X-Real-IP;
  22.  
  23. include /etc/nginx/mime.types;
  24. default_type application/octet-stream;
  25. server_names_hash_bucket_size 256;
  26.  
  27. access_log off;
  28.  
  29. sendfile on;
  30. keepalive_timeout 65;
  31. include /etc/nginx/sites.conf;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement