From cb8f20c9d5dd95191ce0e2fa3c0150f24fddfeb3 Mon Sep 17 00:00:00 2001 From: Paweł Dybiec Date: Sun, 11 Jul 2021 20:41:24 +0100 Subject: Add ipv6 in nginx, move certs --- nginx/conf.d/cgit.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nginx/conf.d') diff --git a/nginx/conf.d/cgit.conf b/nginx/conf.d/cgit.conf index 651a0eb..57f62fc 100644 --- a/nginx/conf.d/cgit.conf +++ b/nginx/conf.d/cgit.conf @@ -1,13 +1,18 @@ server { listen 80; + listen [::]:80; server_name git.dybiec.info; return 301 https://$server_name$request_uri; } server { listen 443 ssl http2; + listen [::]:443 ssl http2; server_name git.dybiec.info; - location ~* ^.+(cgit.(css|png)|favicon.ico|robots.txt) { + location /favicon.ico { + root /var/www/html/; + } + location ~* ^.+(cgit.(css|png)|robots.txt) { root /usr/share/cgit/; } location / { -- cgit 1.4.1