Advertisement
JeanBritz

nginx.conf

Apr 20th, 2022
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. user www-data;
  2. worker_processes auto;
  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. stream {
  12. server {
  13. listen 0.0.0.0:51999;
  14. #TCP traffic will be forwarded to the specified server
  15. proxy_pass 192.168.99.103:2376;
  16. }
  17. server {
  18. listen 0.0.0.0:443;
  19. #TCP traffic will be forwarded to the specified server
  20. proxy_pass 192.168.99.103:443;
  21. }
  22. server {
  23. listen 0.0.0.0:80;
  24. #TCP traffic will be forwarded to the specified server
  25. proxy_pass 192.168.99.103:80;
  26. }
  27. }
  28.  
  29. http {
  30.  
  31. ##
  32. # Basic Settings
  33. ##
  34.  
  35. sendfile on;
  36. tcp_nopush on;
  37. tcp_nodelay on;
  38. keepalive_timeout 65;
  39. types_hash_max_size 2048;
  40. # server_tokens off;
  41.  
  42. # server_names_hash_bucket_size 64;
  43. # server_name_in_redirect off;
  44.  
  45. include /etc/nginx/mime.types;
  46. default_type application/octet-stream;
  47.  
  48. ##
  49. # SSL Settings
  50. ##
  51.  
  52. ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
  53. ssl_prefer_server_ciphers on;
  54.  
  55. ##
  56. # Logging Settings
  57. ##
  58.  
  59. access_log /var/log/nginx/access.log;
  60. error_log /var/log/nginx/error.log;
  61.  
  62. ##
  63. # Gzip Settings
  64. ##
  65.  
  66. gzip on;
  67.  
  68. # gzip_vary on;
  69. # gzip_proxied any;
  70. # gzip_comp_level 6;
  71. # gzip_buffers 16 8k;
  72. # gzip_http_version 1.1;
  73. # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  74.  
  75. ##
  76. # Virtual Host Configs
  77. ##
  78.  
  79. include /etc/nginx/conf.d/*.conf;
  80. include /etc/nginx/sites-enabled/*;
  81. }
  82.  
  83.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement