feat(forgejo): migrate from git.adriano.fyi -> code.adriano.fyi

This commit is contained in:
Adriano Caloiaro 2026-07-19 08:10:47 -06:00
parent b19b322827
commit 8ee6f3f3ca
No known key found for this signature in database
3 changed files with 28 additions and 2 deletions

View file

@ -315,6 +315,17 @@ resource "hcloud_zone_rrset" "git" {
{ value = "ncm4.adriano.fyi." },
]
}
resource "hcloud_zone_rrset" "code" {
provider = hcloud
zone = hcloud_zone.adriano_fyi.name
ttl = 300
name = "code"
type = "CNAME"
records = [
{ value = "ncm4.adriano.fyi." },
]
}
################################################################################################################
# zenitylabs.com
################################################################################################################

View file

@ -398,6 +398,21 @@ adriano.fyi {
}
}
code.adriano.fyi {
{{ with nomadService "forgejo" }}
reverse_proxy /* {
to {{ range . }}http://{{ .Address }}:{{ .Port }}{{ end }}
}
{{ else }}
respond "Service temporarily unavailable" 503
{{ end }}
tls {
dns hetzner {{ with nomadVar "nomad/jobs/caddy"}}{{ .dns_access_token }}{{ end }}
propagation_delay 30s
}
}
git.adriano.fyi {
{{ with nomadService "forgejo" }}
reverse_proxy /* {

View file

@ -133,8 +133,8 @@ RUN_MODE = prod
WORK_PATH = /data/forgejo
[server]
DOMAIN = git.adriano.fyi
ROOT_URL = https://git.adriano.fyi/
DOMAIN = code.adriano.fyi
ROOT_URL = https://code.adriano.fyi/
HTTP_PORT = 3000
APP_DATA_PATH = /data/forgejo
SSH_DOMAIN = git.adriano.fyi