# Extension Registry Gitea Configuration Fragment

[[elements]]
border_top = true
border_bottom = false
name = "registry_gitea_header"
title = "🐙 Gitea Configuration"
type = "section_header"

[[elements]]
default = true
help = "Enable Gitea as extension source"
name = "registry_gitea_enabled"
nickel_path = ["extension_registry", "gitea", "enabled"]
prompt = "Enable Gitea"
type = "confirm"

[[elements]]
condition = "registry_gitea_enabled == true"
default = "http://localhost:3000"
help = "Gitea server URL"
name = "registry_gitea_url"
nickel_path = ["extension_registry", "gitea", "url"]
prompt = "Gitea URL"
required = true
type = "text"

[[elements]]
condition = "registry_gitea_enabled == true"
default = "provisioning"
help = "Gitea organization name"
name = "registry_gitea_org"
nickel_path = ["extension_registry", "gitea", "org"]
prompt = "Organization"
required = true
type = "text"

[[elements]]
condition = "registry_gitea_enabled == true"
default = 60000
help = "Request timeout in milliseconds"
max = 300000
min = 5000
name = "registry_gitea_timeout"
nickel_path = ["extension_registry", "gitea", "timeout"]
prompt = "Timeout (ms)"
type = "number"

[[elements]]
condition = "registry_gitea_enabled == true"
default = false
help = "Verify SSL certificates"
name = "registry_gitea_verify_ssl"
nickel_path = ["extension_registry", "gitea", "verify_ssl"]
prompt = "Verify SSL"
type = "confirm"
