diff options
author | clarkzjw <[email protected]> | 2023-01-20 16:17:29 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-01-20 16:17:29 -0800 |
commit | 4a5073589cca64898016209c0a6b0d22d9fe2075 (patch) | |
tree | 631e311ed2ef1e711fb1e1b295ae9ccae8ed6b74 /clarkzjw.cc/config/bia/ansible/roles/cgit/templates | |
parent | 9be2b67e354773c1f65d7502b5eee2dbf1bb1498 (diff) | |
download | homelab-4a5073589cca64898016209c0a6b0d22d9fe2075.tar.gz |
WIP: add cgit config
Diffstat (limited to 'clarkzjw.cc/config/bia/ansible/roles/cgit/templates')
-rw-r--r-- | clarkzjw.cc/config/bia/ansible/roles/cgit/templates/cgit.conf.j2 | 17 |
1 files changed, 1 insertions, 16 deletions
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 { | |||
17 | root /usr/local/www/nginx-dist; | 17 | root /usr/local/www/nginx-dist; |
18 | } | 18 | } |
19 | 19 | ||
20 | listen 443 ssl; # managed by Certbot | 20 | listen 80; |
21 | ssl_certificate /usr/local/etc/letsencrypt/live/{{ lookup('env', 'CGIT_DOMAIN') }}/fullchain.pem; # managed by Certbot | ||
22 | ssl_certificate_key /usr/local/etc/letsencrypt/live/{{ lookup('env', 'CGIT_DOMAIN') }}/privkey.pem; # managed by Certbot | ||
23 | include /usr/local/etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | ||
24 | ssl_dhparam /usr/local/etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | ||
25 | } | ||
26 | |||
27 | |||
28 | server { | ||
29 | if ($host = {{ lookup('env', 'CGIT_DOMAIN') }}) { | ||
30 | return 301 https://$host$request_uri; | ||
31 | } # managed by Certbot | ||
32 | |||
33 | listen 80; | ||
34 | server_name {{ lookup('env', 'CGIT_DOMAIN') }}; | ||
35 | return 404; # managed by Certbot | ||
36 | } | 21 | } |