diff options
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 %} |
