diff options
author | Paweł Dybiec <pawel@dybiec.info> | 2021-07-11 20:41:24 +0100 |
---|---|---|
committer | Paweł Dybiec <pawel@dybiec.info> | 2021-07-11 20:41:24 +0100 |
commit | cb8f20c9d5dd95191ce0e2fa3c0150f24fddfeb3 (patch) | |
tree | 390bef8fac434f9c9e3cddd9a84f940f091f44d4 /nginx/conf.d/cgit.conf | |
parent | Docker is dead, long live the podman (diff) |
Add ipv6 in nginx, move certs
Diffstat (limited to 'nginx/conf.d/cgit.conf')
-rw-r--r-- | nginx/conf.d/cgit.conf | 7 |
1 files changed, 6 insertions, 1 deletions
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 / { |