Update domain

This commit is contained in:
2023-07-29 21:32:34 -07:00
parent 5735912ffc
commit 1e27bfa170
15 changed files with 35 additions and 35 deletions

View File

@@ -1,6 +1,6 @@
# Go Import Redirector
This is the nomad job file I use for rsc's [go-import-redirector](https://github.com/rsc/go-import-redirector), which redirects the Go programming language tool to the proper github repo. For example, if someone tries to install one of my projects, rather than having to type out `go install gitea.arsenm.dev/Arsen6331/itd@latest`, they can just use `go install go.arsenm.dev/itd@latest` and this service will redirect them.
This is the nomad job file I use for rsc's [go-import-redirector](https://github.com/rsc/go-import-redirector), which redirects the Go programming language tool to the proper github repo. For example, if someone tries to install one of my projects, rather than having to type out `go install gitea.elara.ws/Arsen6331/itd@latest`, they can just use `go install go.elara.ws/itd@latest` and this service will redirect them.
This job file downloads an archive containing `go-import-redirector` executables for `x86_64` and `aarch64`, as well as a script that runs the correct one, from my minio instance.

View File

@@ -17,13 +17,13 @@ job "go-import-redirector" {
command = "local/exec.sh"
args = [
"-addr", ":${NOMAD_PORT_http}",
"go.arsenm.dev/*",
"https://gitea.arsenm.dev/Arsen6331/*"
"go.elara.ws/*",
"https://gitea.elara.ws/Arsen6331/*"
]
}
artifact {
source = "https://api.minio.arsenm.dev/adl/go-import-redirector.tar.gz"
source = "https://api.minio.elara.ws/adl/go-import-redirector.tar.gz"
}
resources {
@@ -37,7 +37,7 @@ job "go-import-redirector" {
tags = [
"traefik.enable=true",
"traefik.http.routers.go-import-redirector.rule=Host(`go.arsenm.dev`)",
"traefik.http.routers.go-import-redirector.rule=Host(`go.elara.ws`)",
"traefik.http.routers.go-import-redirector.tls.certResolver=letsencrypt"
]
}