/
.env.example
42 lines (30 loc) · 1.26 KB
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# When adding additional environment variables, the schema in "/src/env.mjs"
# should be updated accordingly.
NODE_ENV=development
# Postgres Database url
DATABASE_URL="postgresql://postgres:password@localhost:5439/joia"
# A unique secret key used for DB encryption and for session management
# Must be generated with one of the following commands:
# - npm run cloak:generate
# - npx cloak generate
ENCRYPTION_KEY="SECRET_MASTER_KEY"
# Google OAuth keys, to enable login
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# SMTP email provider
SMTP_EMAIL_SERVER=smtp://username:password@smtp.exampledomain.com:port
SMTP_EMAIL_FROM=info@exampledomain.com
# Currently it is required to provide OpenAI for some operations like
# generating titles. Expect this env variable to be removed in the future.
INTERNAL_OPENAI_API_KEY=sk-mysecret_openai_key
# Optional OpenAI base url, in case you want to proxy calls through
# another provider like Cloudflare, Azure or Openrouter
OPTIONAL_OPENAI_BASE_URL=
NEXT_PUBLIC_ENV=development
NEXT_PUBLIC_FRONTEND_URL=http://localhost:3000
NEXT_PUBLIC_TRPC_DEBUG=false
# S3 bucket for storing files (any S3-compatible storage works. Region is optional.)
S3_BUCKET_NAME=my-bucket
S3_REGION=us-east-1
S3_ACCESS_KEY_ID=mykey
S3_SECRET_ACCESS_KEY=mypassword