diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-07-17 15:40:22 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-07-17 15:40:22 +0200 |
| commit | 22988554510dd5d76df4037cebe8e6662f4dbc61 (patch) | |
| tree | 9e2994f0d87d8b88886e913882ee47ab133d210c /roles/cgit/templates/cgit.nginx.conf.j2 | |
| parent | 92ba528a34337b59408e41b124aafc8946439feb (diff) | |
Refactor proxy setup on cgit to simplify setup
Diffstat (limited to 'roles/cgit/templates/cgit.nginx.conf.j2')
| -rw-r--r-- | roles/cgit/templates/cgit.nginx.conf.j2 | 28 |
1 files changed, 0 insertions, 28 deletions
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 %} |
