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
|
# 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=
|
||||||
|
@ -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)
|
||||||
|
@ -213,4 +213,4 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.back.extraVolumes }}
|
{{- with .Values.back.extraVolumes }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user