Advertisement
spudsss

nginx.conf

Jul 11th, 2023
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. user nginx;
  2. worker_processes  auto;
  3. worker_rlimit_nofile 65535;
  4. error_log  /var/log/nginx/error.log notice;
  5. pid        /var/run/nginx.pid;
  6.  
  7. events {
  8.     worker_connections  65535;
  9.     multi_accept on;
  10. }
  11.  
  12. http {
  13.  
  14.     upstream backend {
  15.         server ip_goes_here;
  16.     }
  17.  
  18.     include       /etc/nginx/mime.types;
  19.     default_type  application/octet-stream;
  20.     ssl_protocols TLSv1.2;
  21.     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  22.                     '$status $body_bytes_sent "$http_referer" '
  23.                     '"$http_user_agent" "$http_x_forwarded_for"';
  24.  
  25.     access_log  /var/log/nginx/access.log  main;
  26.  
  27.  
  28.     keepalive_timeout 65;
  29.     sendfile on;
  30.     tcp_nopush on;
  31.     tcp_nodelay on;
  32.     types_hash_max_size 2048;
  33.     include /etc/nginx/web.conf;
  34.  
  35. }
  36.  
  37. include /etc/nginx/stream.conf;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement