rename hmac_key to secret_key
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
This commit is contained in:
parent
f36079d56c
commit
6445fb5e82
3 changed files with 3 additions and 3 deletions
|
@ -9,5 +9,5 @@ Companion for Invidious which handle all the video stream retrieval from YouTube
|
||||||
## Run Locally
|
## Run Locally
|
||||||
|
|
||||||
```
|
```
|
||||||
SERVER_HMAC_KEY=CHANGEME deno task dev
|
SERVER_SECRET_KEY=CHANGEME deno task dev
|
||||||
```
|
```
|
|
@ -1,7 +1,7 @@
|
||||||
[server]
|
[server]
|
||||||
port = 8282
|
port = 8282
|
||||||
host = "127.0.0.1"
|
host = "127.0.0.1"
|
||||||
hmac_key = "CHANGE_ME"
|
secret_key = "CHANGE_ME"
|
||||||
base_url = "http://localhost:8282"
|
base_url = "http://localhost:8282"
|
||||||
|
|
||||||
[cache]
|
[cache]
|
||||||
|
|
|
@ -14,7 +14,7 @@ export const routes = (app: Hono, konfigStore: Store<Record<string, unknown>>) =
|
||||||
app.use(
|
app.use(
|
||||||
"/youtubei/v1/*",
|
"/youtubei/v1/*",
|
||||||
bearerAuth({
|
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,
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue