diff --git a/gitea/conf/conf.ini.tpl b/gitea/conf/conf.ini.tpl index b777b9c..620bebb 100644 --- a/gitea/conf/conf.ini.tpl +++ b/gitea/conf/conf.ini.tpl @@ -146,6 +146,7 @@ ENABLE_NOTIFY_MAIL = true DISABLE_REGISTRATION = false ; ; Enable captcha validation for registration ENABLE_CAPTCHA = true +REQUIRE_EXTERNAL_REGISTRATION_CAPTCHA = true CAPTCHA_TYPE = image ; ; User must sign in to view anything. REQUIRE_SIGNIN_VIEW = false diff --git a/gitea/data.tf b/gitea/data.tf index a8c6298..a09350f 100644 --- a/gitea/data.tf +++ b/gitea/data.tf @@ -1,7 +1,6 @@ # https://github.com/go-gitea/gitea/releases data "docker_registry_image" "gitea" { - # not bleeding, this is hemorrhaging edge - name = "gitea/gitea:1.11" + name = "gitea/gitea:1.12" } data "docker_registry_image" "redis" { diff --git a/media/gonic.tf b/media/gonic.tf index a4101e5..54f2277 100644 --- a/media/gonic.tf +++ b/media/gonic.tf @@ -1,36 +1,36 @@ -# module "gonic" { -# source = "../modules/container" -# image = "sentriz/gonic" -# name = "gonic" +module "gonic" { + source = "../modules/container" + image = "sentriz/gonic" + name = "gonic" -# resource { -# memory = "256" -# memory_swap = "256" -# } + resource { + memory = "512" + memory_swap = "512" + } -# web { -# port = 80 -# host = "gonic.bb8.fun" -# expose = true -# } + web { + port = 80 + host = "gonic.bb8.fun" + expose = true + } -# env = [ -# "GONIC_SCAN_INTERVAL=60", -# "GONIC_MUSIC_PATH=/music", -# "GONIC_DB_PATH=/data/gonic.db" -# ] + env = [ + "GONIC_SCAN_INTERVAL=60", + "GONIC_MUSIC_PATH=/music", + "GONIC_DB_PATH=/data/gonic.db" + ] -# networks = "${list(docker_network.media.id, data.docker_network.bridge.id)}" + networks = "${list(docker_network.media.id, data.docker_network.bridge.id)}" -# volumes = [ -# { -# host_path = "/mnt/xwing/config/gonic" -# container_path = "/data" -# }, -# { -# host_path = "/mnt/xwing/media/Music" -# container_path = "/music" -# read_only = true -# } -# ] -# } + volumes = [ + { + host_path = "/mnt/xwing/config/gonic" + container_path = "/data" + }, + { + host_path = "/mnt/xwing/media/Music" + container_path = "/music" + read_only = true + } + ] +}