Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen [::]:80;
- server_name clubdesbatards.fr;
- access_log /dev/null;
- error_log /dev/null;
- }
- server {
- listen 443 ssl http2;
- server_name clubdesbatards.fr;
- root /var/www/;
- index index.html index.htm index.php;
- # HTTPS : mise en place de la config et des certificats
- ssl_certificate /etc/letsencrypt/live/clubdesbatards.fr/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/clubdesbatards.fr/privkey.pem;
- ssl_trusted_certificate /etc/letsencrypt/live/clubdesbatards.fr/chain.pem;
- ssl_protocols TLSv1.2;
- ssl_ecdh_curve prime256v1;
- ssl_ciphers EECDH+AESGCM:EECDH+AES;
- ssl_prefer_server_ciphers on;
- resolver 80.67.169.12 80.67.169.40 valid=300s;
- resolver_timeout 5s;
- ssl_session_cache shared:SSL:10m;
- add_header Strict-Transport-Security "max-age=15768000";
- location / {
- try_files $uri $uri/ =404;
- }
- if ($allowed_country = no) {
- return 444;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include /etc/nginx/fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement