mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-31 14:33:50 -04:00
Hardcode /api prefix for the api
This commit is contained in:
parent
fbfe9dda8a
commit
4188e7bcd3
@ -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=
|
||||
|
@ -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)
|
||||
|
@ -213,4 +213,4 @@ spec:
|
||||
{{- end }}
|
||||
{{- with .Values.back.extraVolumes }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
@ -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:
|
||||
|
@ -77,7 +77,6 @@ services:
|
||||
ports:
|
||||
- "3567:3567"
|
||||
environment:
|
||||
- KYOO_PREFIX=/api
|
||||
- JWT_ISSUER=${PUBLIC_URL}
|
||||
env_file:
|
||||
- ./.env
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user