JairoAbreu

Untitled

Jan 14th, 2021
971
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  cat nginx.conf
  2. user www-data;
  3. worker_processes auto;
  4. pid /run/nginx.pid;
  5. include /etc/nginx/modules-enabled/*.conf;
  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.         # SSL Settings
  33.         ##
  34.  
  35.         ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
  36.         ssl_prefer_server_ciphers on;
  37.  
  38.         ##
  39.         # Logging Settings
  40.         ##
  41.  
  42.         access_log /var/log/nginx/access.log;
  43.         error_log /var/log/nginx/error.log;
  44.  
  45.         ##
  46.         # Gzip Settings
  47.         ##
  48.  
  49.         gzip on;
  50.  
  51.         # gzip_vary on;
  52.         # gzip_proxied any;
  53.         # gzip_comp_level 6;
  54.         # gzip_buffers 16 8k;
  55.         # gzip_http_version 1.1;
  56.         # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  57.  
  58.         ##
  59.         # Virtual Host Configs
  60.         ##
  61.  
  62.         include /etc/nginx/conf.d/*.conf;
  63.         include /etc/nginx/sites-enabled/*;
  64. }
  65.  
  66.  
  67. #mail {
  68. #       # See sample authentication script at:
  69. #       # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  70. #
  71. #       # auth_http localhost/auth.php;
  72. #       # pop3_capabilities "TOP" "USER";
  73. #       # imap_capabilities "IMAP4rev1" "UIDPLUS";
  74. #
  75. #       server {
  76. #               listen     localhost:110;
  77. #               protocol   pop3;
  78. #               proxy      on;
  79. #       }
  80. #
  81. #       server {
  82. #               listen     localhost:143;
  83. #               protocol   imap;
  84. #               proxy      on;
  85. #       }
  86. #}
  87.  
  88. server {
  89.         listen 80;
  90.         listen [::]:80;
  91.         server_name *.jairoabreu.com.br jairoabreu.com.br;
  92.         return 301 https://$host$request_uri;
  93. }
  94.  
  95. server {
  96.         listen 443 ssl;
  97.         listen [::]:443 ssl;
  98.         ssl_session_cache shared:SSL:10m;
  99.         ssl_session_timeout 5m;
  100.         ssl_certificate      /etc/letsencrypt/live/jairoabreu.com.br/fullchain.pem;
  101.         ssl_certificate_key  /etc/letsencrypt/live/jairoabreu.com.br/privkey.pem;
  102.         server_name *.jairoabreu.com.br jairoabreu.com.br;
  103. }
  104.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×