Advertisement
Guest User

Untitled

a guest
Mar 25th, 2020
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. server {
  2. listen [::]:80;
  3. server_name clubdesbatards.fr;
  4. access_log /dev/null;
  5. error_log /dev/null;
  6. }
  7.  
  8. server {
  9. listen 443 ssl http2;
  10. server_name clubdesbatards.fr;
  11.  
  12. root /var/www/;
  13.  
  14. index index.html index.htm index.php;
  15.  
  16. # HTTPS : mise en place de la config et des certificats
  17. ssl_certificate /etc/letsencrypt/live/clubdesbatards.fr/fullchain.pem;
  18. ssl_certificate_key /etc/letsencrypt/live/clubdesbatards.fr/privkey.pem;
  19. ssl_trusted_certificate /etc/letsencrypt/live/clubdesbatards.fr/chain.pem;
  20.  
  21. ssl_protocols TLSv1.2;
  22. ssl_ecdh_curve prime256v1;
  23. ssl_ciphers EECDH+AESGCM:EECDH+AES;
  24. ssl_prefer_server_ciphers on;
  25. resolver 80.67.169.12 80.67.169.40 valid=300s;
  26. resolver_timeout 5s;
  27.  
  28. ssl_session_cache shared:SSL:10m;
  29. add_header Strict-Transport-Security "max-age=15768000";
  30.  
  31. location / {
  32. try_files $uri $uri/ =404;
  33. }
  34. if ($allowed_country = no) {
  35. return 444;
  36. }
  37.  
  38. location ~ \.php$ {
  39. try_files $uri =404;
  40. fastcgi_pass 127.0.0.1:9000;
  41. fastcgi_index index.php;
  42. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  43. include /etc/nginx/fastcgi_params;
  44. }
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement