diff --git a/docker/conf/gitea/extra_links.tmpl b/docker/conf/gitea/extra_links.tmpl new file mode 100644 index 0000000..87d4e38 --- /dev/null +++ b/docker/conf/gitea/extra_links.tmpl @@ -0,0 +1,7 @@ + + Contact + + + + Status + diff --git a/docker/conf/gitea/home.tmpl b/docker/conf/gitea/home.tmpl new file mode 100644 index 0000000..b2134a1 --- /dev/null +++ b/docker/conf/gitea/home.tmpl @@ -0,0 +1,36 @@ +{{template "base/head" .}} +
+
+
+
+ +
+
+

+ Nemo's Code +

+

under-the-tv code hosting service

+
+
+
+
+
+

+ + Run by friends +

+

+ This service is run by Nemo +

+
+
+

+ Uptime not guaranteed +

+

+ Run for fun and not profit. +

+
+
+
+{{template "base/footer" .}} diff --git a/docker/gitea.tf b/docker/gitea.tf index 737d752..5eacf57 100644 --- a/docker/gitea.tf +++ b/docker/gitea.tf @@ -33,6 +33,9 @@ resource docker_container "gitea" { host_path = "${docker_volume.gitea_volume.mountpoint}" } + # Logos + # TODO: Add svg + upload { content = "${file("${path.module}/conf/gitea/public/img/gitea-lg.png")}" file = "/data/gitea/public/img/gitea-lg.png" @@ -53,13 +56,19 @@ resource docker_container "gitea" { file = "/data/gitea/public/humans.txt" } + # Extra Links in header + # TODO: Doesn't work + upload { + content = "${file("${path.module}/conf/gitea/extra_links.tmpl")}" + file = "/data/gitea/templates/custom/extra_links.tmpl" + } + + # This is the main configuration file upload { content = "${data.template_file.gitea-config-file.rendered}" file = "/data/gitea/conf/app.ini" } - # TODO: Add svg - memory = 256 restart = "unless-stopped" destroy_grace_seconds = 10