generated from KATITB2023/t3-with-ws-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env.example
52 lines (41 loc) · 1.64 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
43
44
45
46
47
48
49
50
51
52
# Since the ".env" file is gitignored, you can use the ".env.example" file to
# build a new ".env" file when you clone the repo. Keep this file up-to-date
# when you add new variables to `.env`.
# This file will be committed to version control, so make sure not to have any
# secrets in it. If you are cloning this repo, create a copy of this file named
# ".env" and populate it with your secrets.
# When adding additional environment variables, the schema in "/src/env.cjs"
# should be updated accordingly.
# Prisma
# https://www.prisma.io/docs/reference/database-reference/connection-urls#env
DATABASE_URL="postgresql://postgres:password@localhost:5432/kat-example?schema=public&pgbouncer=true&connection_limit=1&pool_timeout=20"
# Next Auth
# You can generate a new secret on the command line with:
# openssl rand -base64 32
# https://next-auth.js.org/configuration/options#secret
NEXTAUTH_SECRET="x1kFXZY8MU9rgU+dOW0pNnJEhI5eucWqmund5t1JOTo="
NEXTAUTH_URL="http://localhost:3000"
# Session Management
# Session is persisted in cookies for 30 days
SESSION_MAXAGE="2592000"
SESSION_COOKIE_DOMAIN="localhost"
# Response Caching
# Cache request for one day + revalidate once every second
S_MAXAGE="1"
STALE_WHILE_REVALIDATE="86400"
# Logging
# Sampling with 10% of traces in production
SAMPLER_RATIO="0.1"
# Chat Room Service
TYPING_TIMEOUT="1000"
# Next Public Environment
NEXT_PUBLIC_API_URL="http://localhost:3000"
NEXT_PUBLIC_WS_URL="ws://localhost:3001"
NEXT_PUBLIC_BUCKET_API_KEY="web-social"
# Redis for Event Emitter
REDIS_URL="redis://localhost:6379"
# Mail Server
SMTP_HOST="smtp.example.com"
SMTP_PORT="465"
SMTP_USER="gagasjelek@gmail.com"
SMTP_PASS="password"