From 22988554510dd5d76df4037cebe8e6662f4dbc61 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Fri, 17 Jul 2026 15:40:22 +0200 Subject: Refactor proxy setup on cgit to simplify setup --- roles/cgit/templates/cgit.nginx.conf.j2 | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 roles/cgit/templates/cgit.nginx.conf.j2 (limited to 'roles/cgit/templates/cgit.nginx.conf.j2') diff --git a/roles/cgit/templates/cgit.nginx.conf.j2 b/roles/cgit/templates/cgit.nginx.conf.j2 deleted file mode 100644 index 4ac0ae43..00000000 --- a/roles/cgit/templates/cgit.nginx.conf.j2 +++ /dev/null @@ -1,28 +0,0 @@ -server { - listen 80; - listen [::]:80; - server_name {{ cgit_hostname }}; - location / { - proxy_pass http://{{ network_ipv4_address }}:{{ cgit_port }}; - } -} -{% if cgit_public_hostname is defined %} - -server { - listen 80; - listen [::]:80; - server_name {{ cgit_public_hostname }}; - return 301 https://$server_name$request_uri; -} - -server { - listen 443 ssl http2; - listen [::]:443 ssl http2; - server_name {{ cgit_public_hostname }}; - ssl_certificate {{ nginx_ssl_certificate }}; - ssl_certificate_key {{ nginx_ssl_certificate_key }}; - location / { - proxy_pass http://{{ network_ipv4_address }}:{{ cgit_port }}; - } -} -{% endif %} -- cgit v1.2.3