From 4837b686e234439afb5dc7f71fc2eab34ffa01fe Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Sun, 16 Sep 2018 23:43:58 +0200 Subject: [PATCH] suite --- config/nginx.conf | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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; +}