Move lure-web to lure.sh

This commit is contained in:
Elara 2023-10-07 11:44:48 -07:00
parent 3ffd995ccf
commit 31d921f140
3 changed files with 15 additions and 10 deletions

View File

@ -4,7 +4,7 @@ steps:
image: gitea.elara.ws/elara6331/node
directory: frontend
environment:
- LURE_WEB_API_URL=https://api.lure.elara.ws
- LURE_WEB_API_URL=https://api.lure.sh
commands:
- npm i
- npm run build

View File

@ -35,7 +35,7 @@
<p class="subtitle">
Paste this into your Linux terminal and the install script will set everything up for you
</p>
<Highlight language={bash} code="curl -fsSL lure.elara.ws/install | bash" />
<Highlight language={bash} code="curl -fsSL lure.sh/install | bash" />
<p>
LURE is also available on the AUR as <a
href="https://aur.archlinux.org/packages/linux-user-repository-bin"

View File

@ -19,7 +19,7 @@ job "lure-web" {
env {
LURE_API_GITHUB_SECRET = "${LURE_API_GITHUB_SECRET}"
// Hack to force Nomad to re-deploy the service
// instead of ignoring it
COMMIT_SHA = "${DRONE_COMMIT_SHA}"
@ -35,7 +35,7 @@ job "lure-web" {
port = "api"
tags = [
"traefik.enable=true",
"traefik.http.routers.lure-backend.rule=Host(`api.lure.elara.ws`)",
"traefik.http.routers.lure-backend.rule=Host(`api.lure.sh`)",
"traefik.http.routers.lure-backend.tls.certresolver=letsencrypt"
]
@ -50,11 +50,11 @@ job "lure-web" {
task "frontend" {
driver = "docker"
config {
image = "gitea.elara.ws/lure/frontend:latest"
ports = ["http"]
args = ["build"]
args = ["build"]
}
@ -63,16 +63,21 @@ job "lure-web" {
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.lure-frontend.rule=Host(`lure.elara.ws`)",
"traefik.http.middlewares.lure-redir.redirectRegex.regex=^https://(www\\.lure\\.sh|lure\\.elara\\.ws)",
"traefik.http.middlewares.lure-redir.redirectRegex.replacement=https://lure.sh",
"traefik.http.middlewares.lure-redir.redirectRegex.permanent=true",
"traefik.http.routers.lure-frontend.rule=Host(`lure.sh`) || Host(`www.lure.sh`) || Host(`lure.elara.ws`)",
"traefik.http.routers.lure-frontend.middlewares=lure-redir",
"traefik.http.routers.lure-frontend.tls.certresolver=letsencrypt",
]
}
}
}
constraint {
attribute = "${attr.cpu.arch}"
operator = "set_contains_any"
value = "amd64,arm64,riscv64"
operator = "set_contains_any"
value = "amd64,arm64,riscv64"
}
}