From c0928b87a6417bbda315f2b7eab6349cfb971b8e Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 15 Jul 2020 01:40:40 +0200 Subject: [PATCH] services: letsencrypt: add blog and CV --- letsencrypt/nginx/site-confs/default | 49 ++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 letsencrypt/nginx/site-confs/default diff --git a/letsencrypt/nginx/site-confs/default b/letsencrypt/nginx/site-confs/default new file mode 100644 index 0000000..9617a78 --- /dev/null +++ b/letsencrypt/nginx/site-confs/default @@ -0,0 +1,49 @@ +## Version 2020/03/05 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/default + +# redirect all traffic to https +server { + listen 80 default_server; + listen [::]:80 default_server; + server_name _; + return 301 https://$host$request_uri; +} + +# main server block +server { + listen 443 ssl http2 default_server; + listen [::]:443 ssl http2 default_server; + + root /config/www/hugo; + index index.html; + + server_name belanyi.fr; + + # all ssl related config moved to ssl.conf + include /config/nginx/ssl.conf; + + client_max_body_size 0; + + location / { + try_files $uri $uri/ /index.html /index.php?$args =404; + } +} + +# CV block +server { + listen 443 ssl; + listen [::]:443 ssl; + + root /config/www/cv; + + server_name cv.*; + + # all ssl related config moved to ssl.conf + include /config/nginx/ssl.conf; + + client_max_body_size 0; +} + +# enable subdomain method reverse proxy confs +include /config/nginx/proxy-confs/*.subdomain.conf; +# enable proxy cache for auth +proxy_cache_path cache/ keys_zone=auth_cache:10m;