@@ -1,4 +1,8 @@
-HTTP_PORT=8074 #
-HTTP_HOST=0.0.0.0 # Defaults to 0.0.0.0 (listen on all interfaces)
-GENIUS_ACCESS_TOKEN=abcdef # Gotten from POST https://api.genius.com/oauth/token or from creating a client on https://genius.com/api-clients
-AUTH_TOKENS= # Comma-separated list of HTTP bearer tokens that are excluded from rate limiting
+# Default is 8074
+HTTP_PORT=8074
+# Defaults to 0.0.0.0 (listen on all interfaces)
+HTTP_HOST=
+# Gotten from creating a client on https://genius.com/api-clients
+GENIUS_ACCESS_TOKEN=
+# Comma-separated list of HTTP bearer tokens that are excluded from rate limiting (on geniURL's side)
+AUTH_TOKENS=
@@ -1,8 +1,11 @@
{
"editor.codeActionsOnSave": {
- "source.fixAll.eslint": true
+ "source.fixAll.eslint": true,
},
"eslint.validate": [
- "javascript"
- ]
+ "javascript",
+ ],
+ "files.associations": {
+ ".env.template": "dotenv",
+ },
}
@@ -12,6 +12,7 @@ async function init()
try
const missingEnvVars = [
+ "HTTP_PORT",
"GENIUS_ACCESS_TOKEN",
].reduce<string[]>((a, v) => ((typeof env[v] !== "string" || env[v]!.length < 1) ? a.concat(v) : a), []);