Guest User

Untitled

a guest
Mar 15th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name example.com;
  4. return 301 https://example.com$request_uri;
  5. }
  6.  
  7. server {
  8. server_name example.com;
  9. listen 443;
  10. ssl_certificate /opt/lego/certificates/example.com.crt;
  11. ssl_certificate_key /opt/lego/certificates/example.com.key;
  12. ssl_stapling on;
  13. ssl_stapling_verify on;
  14. ssl_prefer_server_ciphers on;
  15. ssl_session_cache shared:SSL:10m;
  16. ssl_session_timeout 10m;
  17. ssl_dhparam /etc/nginx/dh2048.pem;
  18. ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
  19. ssl_ciphers !aNULL:!CAMELLIA:!RC4:!SEED:!DES:!MD5:!EXP:HIGH;
  20.  
  21. client_max_body_size 4G;
  22. keepalive_timeout 5;
  23.  
  24. location / {
  25. proxy_read_timeout 6000s;
  26. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  27. proxy_set_header Host $http_host;
  28. proxy_redirect off;
  29. proxy_pass http://127.0.0.1:8080;
  30. }
  31.  
  32. location /.well-known/acme-challenge/ {
  33. root /var/www/letsencrypt;
  34. }
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment