env: readable environment variables in all files

apiPort -> API_PORT
apiURL -> API_URL
apiName -> API_NAME
cors -> ENABLE_CORS
cookiePath -> COOKIE_PATH

webPort -> WEB_PORT
webURL -> WEB_URL
showSponsors -> SHOW_SPONSORS
isBeta -> IS_BETA
This commit is contained in:
wukko
2024-03-05 19:08:59 +06:00
parent 8d8b04dd1f
commit e16ee6c1d3
8 changed files with 35 additions and 35 deletions

View File

@@ -43,7 +43,7 @@ export function createStream(obj) {
exp = streamInfo.exp;
ghmac = streamInfo.hmac;
}
return `${process.env.apiURL}api/stream?t=${streamID}&e=${exp}&h=${ghmac}`;
return `${process.env.API_URL}api/stream?t=${streamID}&e=${exp}&h=${ghmac}`;
}
export function verifyStream(id, hmac, exp) {