gempir

Nginx conf

Sep 30th, 2017
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.93 KB | None | 0 0
  1. server {
  2.         server_name echochamber.gempir.com;
  3.         listen 80;
  4.  
  5.         location / {
  6.                 proxy_pass http://127.0.0.1:1323;
  7.                 proxy_http_version 1.1;
  8.                 proxy_set_header Upgrade $http_upgrade;
  9.                 proxy_set_header Connection "upgrade";
  10.                 proxy_set_header Host $host;
  11.         }
  12.  
  13.     listen 443 ssl; # managed by Certbot
  14. ssl_certificate /etc/letsencrypt/live/echochamber.gempir.com/fullchain.pem; # managed by Certbot
  15. ssl_certificate_key /etc/letsencrypt/live/echochamber.gempir.com/privkey.pem; # managed by Certbot
  16. # This file contains important security parameters. If you modify this file
  17. # manually, Certbot will be unable to automatically provide future security
  18. # updates. Instead, Certbot will print and log an error message with a path to
  19. # the up-to-date file that you will need to refer to when manually updating
  20. # this file.
  21.  
  22. ssl_session_cache shared:le_nginx_SSL:1m; # managed by Certbot
  23. ssl_session_timeout 1440m; # managed by Certbot
  24.  
  25. ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # managed by Certbot
  26. ssl_prefer_server_ciphers on; # managed by Certbot
  27.  
  28. ssl_ciphers "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS"; # managed by Certbot
  29.  
  30.  
  31.  
  32.     if ($scheme != "https") {
  33.         return 301 https://$host$request_uri;
  34.     } # managed by Certbot
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment