add .env.example, additional env var (#10)

This commit is contained in:
Alice 2023-05-12 04:26:10 +01:00 committed by GitHub
parent 050047fcd0
commit 17ad1e9d79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

4
.env.example Normal file
View File

@ -0,0 +1,4 @@
FEEDGEN_PORT=3000
FEEDGEN_SQLITE_LOCATION=":memory:"
FEEDGEN_SUBSCRIPTION_ENDPOINT="wss://bsky.social"
FEEDGEN_SERVICE_DID="did:example:test"

View File

@ -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(