Advertisement
vhuezo

NGINX 31 CONFIG

Jun 20th, 2023
1,623
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.89 KB | None | 0 0
  1. user www-data;
  2. worker_processes 12;
  3. pid /run/nginx.pid;
  4. include /etc/nginx/modules-enabled/*.conf;
  5.  
  6. #events {
  7. #   worker_connections 768;
  8.     # multi_accept on;
  9. #}
  10.  
  11. worker_rlimit_nofile 8192;
  12. events {
  13.     worker_connections  4096;
  14.     use epoll;
  15.     multi_accept on;
  16. }
  17.  
  18. http {
  19.  
  20.     ##
  21.     # Basic Settings
  22.     ##
  23.  
  24.     sendfile on;
  25.     tcp_nopush on;
  26.     types_hash_max_size 2048;
  27.     # server_tokens off;
  28.  
  29.     # server_names_hash_bucket_size 64;
  30.     # server_name_in_redirect off;
  31.  
  32.     include /etc/nginx/mime.types;
  33.     default_type application/octet-stream;
  34.  
  35.     ##
  36.     # SSL Settings
  37.     ##
  38.  
  39.     ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
  40.     ssl_prefer_server_ciphers on;
  41.  
  42.     ##
  43.     # Logging Settings
  44.     ##
  45.  
  46.     access_log /var/log/nginx/access.log;
  47.     error_log /var/log/nginx/error.log;
  48.  
  49.     ##
  50.     # Gzip Settings
  51.     ##
  52.  
  53.     gzip on;
  54.  
  55.     # gzip_vary on;
  56.     # gzip_proxied any;
  57.     # gzip_comp_level 6;
  58.     # gzip_buffers 16 8k;
  59.     # gzip_http_version 1.1;
  60.     # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  61.  
  62.     ##
  63.     # Virtual Host Configs
  64.     ##
  65.  
  66.  
  67.     # Limits
  68. #    limit_req_log_level    warn;
  69. #    limit_req_zone         $binary_remote_addr zone=login:10m rate=10r/m;
  70.  
  71.  
  72.     # security
  73. #    include                 /etc/nginx/snippets/security.conf;
  74.  
  75.     # timeouts
  76.     include                 /etc/nginx/snippets/timeouts.conf;
  77.  
  78.  
  79.     include /etc/nginx/conf.d/*.conf;
  80.     include /etc/nginx/sites-enabled/*;
  81. }
  82.  
  83.  
  84. #mail {
  85. #   # See sample authentication script at:
  86. #   # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  87. #
  88. #   # auth_http localhost/auth.php;
  89. #   # pop3_capabilities "TOP" "USER";
  90. #   # imap_capabilities "IMAP4rev1" "UIDPLUS";
  91. #
  92. #   server {
  93. #       listen     localhost:110;
  94. #       protocol   pop3;
  95. #       proxy      on;
  96. #   }
  97. #
  98. #   server {
  99. #       listen     localhost:143;
  100. #       protocol   imap;
  101. #       proxy      on;
  102. #   }
  103. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement