NoPaste

nginx.con

von Lord_Carlos

SNIPPET_TEXT:
  1. user www-data;
  2. worker_processes auto;
  3. pid /run/nginx.pid;
  4. include /etc/nginx/modules-enabled/*.conf;
  5.  
  6.  
  7. events {
  8.         worker_connections 768;
  9.         # multi_accept on;
  10. }
  11.  
  12. http {
  13.  
  14.         ##
  15.         # Basic Settings
  16.         ##
  17.  
  18.         sendfile on;
  19.         tcp_nopush on;
  20.         tcp_nodelay on;
  21.         keepalive_timeout 65;
  22.         types_hash_max_size 2048;
  23.         # server_tokens off;
  24.  
  25.         # server_names_hash_bucket_size 64;
  26.         # server_name_in_redirect off;
  27.  
  28.         include /etc/nginx/mime.types;
  29.         default_type application/octet-stream;
  30.  
  31.  
  32.         ##
  33.         # SSL Settings
  34.         ##
  35.  
  36.         ssl_session_timeout 1d;
  37.         ssl_session_cache shared:SSL:10m;
  38.         ssl_session_tickets off;
  39.  
  40.         # Mozilla Intermediate configuration
  41.         ssl_protocols TLSv1.2 TLSv1.3;
  42.         ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
  43.  
  44.         # OCSP Stapling
  45.         ssl_stapling on;
  46.         ssl_stapling_verify on;
  47.  
  48.         ##
  49.         # Logging Settings
  50.         ##
  51.  
  52.         access_log /var/log/nginx/access.log;
  53.         error_log /var/log/nginx/error.log;
  54.  
  55.         ##
  56.         # Gzip Settings
  57.         ##
  58.  
  59.         gzip on;
  60.  
  61.         ##
  62.         # Virtual Host Configs
  63.         ##
  64.  
  65.         include /etc/nginx/conf.d/*.conf;
  66.         include /etc/nginx/sites-enabled/*;
  67. }

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN