Hardcode /api prefix for the api

This commit is contained in:
Zoe Roux
2025-07-15 00:15:11 +02:00
parent fbfe9dda8a
commit 4188e7bcd3
6 changed files with 2 additions and 8 deletions
-3
View File
@@ -1,9 +1,6 @@
# vi: ft=sh
# shellcheck disable=SC2034
KYOO_PREFIX=/api
# either an hard-coded secret to decode jwts or empty to use keibi's public secret.
# this should only be used in tests
JWT_SECRET=
+1 -1
View File
@@ -54,7 +54,7 @@ export const base = new Elysia({ name: "base" })
})
.as("scoped");
export const prefix = process.env.KYOO_PREFIX ?? "";
export const prefix = "/api";
export const handlers = new Elysia({ prefix })
.use(base)
.use(auth)
+1 -1
View File
@@ -213,4 +213,4 @@ spec:
{{- end }}
{{- with .Values.back.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
-1
View File
@@ -20,7 +20,6 @@ services:
restart: on-failure
environment:
- TRANSCODER_URL=${TRANSCODER_URL:-http://transcoder:7666/video}
- KYOO_PREFIX=/api
env_file:
- ./.env
depends_on:
-1
View File
@@ -77,7 +77,6 @@ services:
ports:
- "3567:3567"
environment:
- KYOO_PREFIX=/api
- JWT_ISSUER=${PUBLIC_URL}
env_file:
- ./.env
-1
View File
@@ -21,7 +21,6 @@ services:
cpus: 1.5
environment:
- TRANSCODER_URL=${TRANSCODER_URL:-http://transcoder:7666/video}
- KYOO_PREFIX=/api
env_file:
- ./.env
depends_on: