summaryrefslogtreecommitdiffstats
path: root/roles/cgit/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/cgit/templates')
-rw-r--r--roles/cgit/templates/cgit.caddy.j25
-rw-r--r--roles/cgit/templates/cgit.nginx.conf.j228
2 files changed, 0 insertions, 33 deletions
diff --git a/roles/cgit/templates/cgit.caddy.j2 b/roles/cgit/templates/cgit.caddy.j2
deleted file mode 100644
index c0a87a18..00000000
--- a/roles/cgit/templates/cgit.caddy.j2
+++ /dev/null
@@ -1,5 +0,0 @@
-{% if cgit_public_hostname is defined %}
-{{ cgit_public_hostname }} {
- reverse_proxy {{ network_ipv4_address }}:{{ cgit_port }}
-}
-{% endif %}
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 %}