From 6445fb5e8217bff428508499865d4e0555f57084 Mon Sep 17 00:00:00 2001 From: Emilien <4016501+unixfox@users.noreply.github.com> Date: Mon, 18 Nov 2024 14:11:39 +0100 Subject: [PATCH] rename hmac_key to secret_key --- README.md | 2 +- config/default.toml | 2 +- src/routes/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5449f8a..97e5220 100644 --- a/README.md +++ b/README.md @@ -9,5 +9,5 @@ Companion for Invidious which handle all the video stream retrieval from YouTube ## Run Locally ``` -SERVER_HMAC_KEY=CHANGEME deno task dev +SERVER_SECRET_KEY=CHANGEME deno task dev ``` \ No newline at end of file diff --git a/config/default.toml b/config/default.toml index 3147f13..43141c4 100644 --- a/config/default.toml +++ b/config/default.toml @@ -1,7 +1,7 @@ [server] port = 8282 host = "127.0.0.1" -hmac_key = "CHANGE_ME" +secret_key = "CHANGE_ME" base_url = "http://localhost:8282" [cache] diff --git a/src/routes/index.ts b/src/routes/index.ts index 8d6c6ec..e481268 100644 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -14,7 +14,7 @@ export const routes = (app: Hono, konfigStore: Store>) = app.use( "/youtubei/v1/*", bearerAuth({ - token: Deno.env.get("SERVER_HMAC_KEY") || konfigStore.get("server.hmac_key") as string, + token: Deno.env.get("SERVER_SECRET_KEY") || konfigStore.get("server.secret_key") as string, }), );