-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnginx.conf
27 lines (21 loc) · 862 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
server {
listen 443 ssl http2; # Activer HTTP/2 si possible
listen [::]:443 ssl http2; # Activer HTTP/2 pour IPv6 si possible
server_name dibodev.com www.dibodev.com;
root /var/www/dibodev.com/html;
index index.html index.htm index.nginx-debian.html;
ssl_certificate /etc/letsencrypt/live/dibodev.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/dibodev.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
location / {
try_files $uri $uri/ /index.html;
}
}
server {
listen 80;
listen [::]:80;
server_name dibodev.com www.dibodev.com;
# Redirection de toutes les demandes HTTP vers HTTPS
return 301 https://$host$request_uri;
}