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, }), );