feat(forgejo): migrate from git.adriano.fyi -> code.adriano.fyi
This commit is contained in:
parent
b19b322827
commit
8ee6f3f3ca
3 changed files with 28 additions and 2 deletions
11
dns/main.tf
11
dns/main.tf
|
|
@ -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
|
||||
################################################################################################################
|
||||
|
|
|
|||
|
|
@ -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 /* {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue