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 image: gitea.elara.ws/elara6331/node
directory: frontend directory: frontend
environment: environment:
- LURE_WEB_API_URL=https://api.lure.elara.ws - LURE_WEB_API_URL=https://api.lure.sh
commands: commands:
- npm i - npm i
- npm run build - npm run build

View File

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

View File

@ -19,7 +19,7 @@ job "lure-web" {
env { env {
LURE_API_GITHUB_SECRET = "${LURE_API_GITHUB_SECRET}" LURE_API_GITHUB_SECRET = "${LURE_API_GITHUB_SECRET}"
// Hack to force Nomad to re-deploy the service // Hack to force Nomad to re-deploy the service
// instead of ignoring it // instead of ignoring it
COMMIT_SHA = "${DRONE_COMMIT_SHA}" COMMIT_SHA = "${DRONE_COMMIT_SHA}"
@ -35,7 +35,7 @@ job "lure-web" {
port = "api" port = "api"
tags = [ tags = [
"traefik.enable=true", "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" "traefik.http.routers.lure-backend.tls.certresolver=letsencrypt"
] ]
@ -50,11 +50,11 @@ job "lure-web" {
task "frontend" { task "frontend" {
driver = "docker" driver = "docker"
config { config {
image = "gitea.elara.ws/lure/frontend:latest" image = "gitea.elara.ws/lure/frontend:latest"
ports = ["http"] ports = ["http"]
args = ["build"] args = ["build"]
} }
@ -63,16 +63,21 @@ job "lure-web" {
port = "http" port = "http"
tags = [ tags = [
"traefik.enable=true", "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", "traefik.http.routers.lure-frontend.tls.certresolver=letsencrypt",
] ]
} }
} }
} }
constraint { constraint {
attribute = "${attr.cpu.arch}" attribute = "${attr.cpu.arch}"
operator = "set_contains_any" operator = "set_contains_any"
value = "amd64,arm64,riscv64" value = "amd64,arm64,riscv64"
} }
} }