From 4a5073589cca64898016209c0a6b0d22d9fe2075 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Fri, 20 Jan 2023 16:17:29 -0800 Subject: WIP: add cgit config --- .../bia/ansible/roles/cgit/templates/cgit.conf.j2 | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'clarkzjw.cc/config/bia/ansible/roles/cgit/templates') diff --git a/clarkzjw.cc/config/bia/ansible/roles/cgit/templates/cgit.conf.j2 b/clarkzjw.cc/config/bia/ansible/roles/cgit/templates/cgit.conf.j2 index 625075d..9504e29 100644 --- a/clarkzjw.cc/config/bia/ansible/roles/cgit/templates/cgit.conf.j2 +++ b/clarkzjw.cc/config/bia/ansible/roles/cgit/templates/cgit.conf.j2 @@ -17,20 +17,5 @@ server { root /usr/local/www/nginx-dist; } - listen 443 ssl; # managed by Certbot - ssl_certificate /usr/local/etc/letsencrypt/live/{{ lookup('env', 'CGIT_DOMAIN') }}/fullchain.pem; # managed by Certbot - ssl_certificate_key /usr/local/etc/letsencrypt/live/{{ lookup('env', 'CGIT_DOMAIN') }}/privkey.pem; # managed by Certbot - include /usr/local/etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot - ssl_dhparam /usr/local/etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot -} - - -server { - if ($host = {{ lookup('env', 'CGIT_DOMAIN') }}) { - return 301 https://$host$request_uri; - } # managed by Certbot - - listen 80; - server_name {{ lookup('env', 'CGIT_DOMAIN') }}; - return 404; # managed by Certbot + listen 80; } -- cgit v1.2.3