diff --git a/config/nginx.conf b/config/nginx.conf index 3410664..d8a6ce7 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -11,8 +11,8 @@ server { root /srv/www/web/ballalama3_app/current/public; ssl on; - ssl_certificate /srv/www/web/ballalama3_app/current/config/ssl/monserveur.crt; - ssl_certificate_key /srv/www/web/ballalama3_app/current/config/ssl/monserveur.key; + ssl_certificate /etc/letsencrypt/live/ballalama.com/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/ballalama.com/privkey.pem; try_files $uri/index.html $uri @unicorn; @@ -35,6 +35,17 @@ server { include snippets/letsencrypt.conf; } +server { + listen [::]:443 ssl; + server_name www.ballalama.com; + ssl on; + ssl_certificate /etc/letsencrypt/live/ballalama.com/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/ballalama.com/privkey.pem; + + return 301 https://ballalama.com$request_uri; + + include snippets/letsencrypt.conf; +}