From 17ad1e9d799b5551b7711430c7009ad5c1477a4c Mon Sep 17 00:00:00 2001 From: Alice <81575558+aliceisjustplaying@users.noreply.github.com> Date: Fri, 12 May 2023 04:26:10 +0100 Subject: [PATCH] add .env.example, additional env var (#10) --- .env.example | 4 ++++ src/index.ts | 1 + 2 files changed, 5 insertions(+) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..ebd0e2b --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +FEEDGEN_PORT=3000 +FEEDGEN_SQLITE_LOCATION=":memory:" +FEEDGEN_SUBSCRIPTION_ENDPOINT="wss://bsky.social" +FEEDGEN_SERVICE_DID="did:example:test" diff --git a/src/index.ts b/src/index.ts index 5974b40..a8486d7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,6 +7,7 @@ const run = async () => { port: maybeInt(process.env.FEEDGEN_PORT), sqliteLocation: maybeStr(process.env.FEEDGEN_SQLITE_LOCATION), subscriptionEndpoint: maybeStr(process.env.FEEDGEN_SUBSCRIPTION_ENDPOINT), + serviceDid: maybeStr(process.env.FEEDGEN_SERVICE_DID), }) await server.start() console.log(