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

View File

@ -1,9 +1,6 @@
# vi: ft=sh # vi: ft=sh
# shellcheck disable=SC2034 # shellcheck disable=SC2034
KYOO_PREFIX=/api
# either an hard-coded secret to decode jwts or empty to use keibi's public secret. # either an hard-coded secret to decode jwts or empty to use keibi's public secret.
# this should only be used in tests # this should only be used in tests
JWT_SECRET= JWT_SECRET=

View File

@ -54,7 +54,7 @@ export const base = new Elysia({ name: "base" })
}) })
.as("scoped"); .as("scoped");
export const prefix = process.env.KYOO_PREFIX ?? ""; export const prefix = "/api";
export const handlers = new Elysia({ prefix }) export const handlers = new Elysia({ prefix })
.use(base) .use(base)
.use(auth) .use(auth)

View File

@ -213,4 +213,4 @@ spec:
{{- end }} {{- end }}
{{- with .Values.back.extraVolumes }} {{- with .Values.back.extraVolumes }}
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}

View File

@ -20,7 +20,6 @@ services:
restart: on-failure restart: on-failure
environment: environment:
- TRANSCODER_URL=${TRANSCODER_URL:-http://transcoder:7666/video} - TRANSCODER_URL=${TRANSCODER_URL:-http://transcoder:7666/video}
- KYOO_PREFIX=/api
env_file: env_file:
- ./.env - ./.env
depends_on: depends_on:

View File

@ -77,7 +77,6 @@ services:
ports: ports:
- "3567:3567" - "3567:3567"
environment: environment:
- KYOO_PREFIX=/api
- JWT_ISSUER=${PUBLIC_URL} - JWT_ISSUER=${PUBLIC_URL}
env_file: env_file:
- ./.env - ./.env

View File

@ -21,7 +21,6 @@ services:
cpus: 1.5 cpus: 1.5
environment: environment:
- TRANSCODER_URL=${TRANSCODER_URL:-http://transcoder:7666/video} - TRANSCODER_URL=${TRANSCODER_URL:-http://transcoder:7666/video}
- KYOO_PREFIX=/api
env_file: env_file:
- ./.env - ./.env
depends_on: depends_on: