Browse Source

feat: (gitea) Add internal domain for SSH

pull/3/head
Karan Sharma 11 months ago
parent
commit
666bd9168a
  1. 2
      floyd/terraform/gitea/conf/app.ini.tpl
  2. 11
      floyd/terraform/gitea/container.tf

2
floyd/terraform/gitea/conf/app.ini.tpl

@ -18,7 +18,7 @@ TEMP_PATH = /data/gitea/uploads
[server]
APP_DATA_PATH = /data/gitea
DOMAIN = git.mrkaran.dev
SSH_DOMAIN = git.mrkaran.dev
SSH_DOMAIN = koadings.mrkaran.dev
HTTP_PORT = 3000
ROOT_URL = https://git.mrkaran.dev/
DISABLE_SSH = false

11
floyd/terraform/gitea/container.tf

@ -14,16 +14,7 @@ resource "docker_container" "gitea" {
file = "/data/gitea/conf/app.ini"
}
# https://tools.ietf.org/html/rfc5966
# mentions to support TCP for DNS.
ports {
internal = 3000
external = 4000
ip = var.ips["tailscale_floyd"]
protocol = "tcp"
}
# DNS on UDP
# SSH port on host exposed to Tailscale IP
ports {
internal = 22
external = 4222

Loading…
Cancel
Save