From ba8adc55a9b49a64613032155f764d868b40d40a Mon Sep 17 00:00:00 2001 From: peter_rabbit <pierrejarriges@gmail.com> Date: Tue, 23 Feb 2021 20:34:39 +0100 Subject: [PATCH] fix:nginx conf --- data/nginx/app.conf | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/data/nginx/app.conf b/data/nginx/app.conf index a4b3176..e26671f 100644 --- a/data/nginx/app.conf +++ b/data/nginx/app.conf @@ -3,24 +3,24 @@ server { server_name kuadrado-software.fr www.kuadrado-software.fr; root /usr/share/nginx/html; index index.html index.htm; - # server_tokens off; - # location /.well-known/acme-challenge/ { - # root /var/www/certbot; - # } + server_tokens off; + location /.well-known/acme-challenge/ { + root /var/www/certbot; + } - # location / { - # return 301 https://$host$request_uri; - # } + location / { + return 301 https://$host$request_uri; + } } -# server { -# server_name kuadrado-software.fr www.kuadrado-software.fr; -# listen 443 ssl; -# root /usr/share/nginx/html; -# index index.html index.htm; -# server_tokens off; -# ssl_certificate /etc/letsencrypt/live/kuadrado-software.fr/fullchain.pem; -# ssl_certificate_key /etc/letsencrypt/live/kuadrado-software.fr/privkey.pem; -# include /etc/letsencrypt/options-ssl-nginx.conf; -# ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; -# } \ No newline at end of file +server { + server_name kuadrado-software.fr www.kuadrado-software.fr; + listen 443 ssl; + root /usr/share/nginx/html; + index index.html index.htm; + server_tokens off; + ssl_certificate /etc/letsencrypt/live/kuadrado-software.fr/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/kuadrado-software.fr/privkey.pem; + include /etc/letsencrypt/options-ssl-nginx.conf; + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; +} \ No newline at end of file -- GitLab