-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.example
More file actions
52 lines (42 loc) · 1.46 KB
/
.env.example
File metadata and controls
52 lines (42 loc) · 1.46 KB
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
# Title
PROJECT_NAME="Full stack FastAPI template Next.js"
# Frontend
# Used by the backend to generate links in emails to the frontend
# Must NOT end with trailing slash `/`.
SITE_URL=http://localhost:3000
# Whitelisted frontend urls
# SITE_URL is included by default
BACKEND_CORS_ORIGINS="http://localhost,https://localhost,http://localhost:3000,https://localhost:3000,http://localhost:3001,https://localhost:3001,https://full-stack-fastapi-template-nextjs.arm1.nemanjamitic.com,https://full-stack-fastapi-template-nextjs.rpi.nemanjamitic.com,https://full-stack-fastapi-template-nextjs.opi.nemanjamitic.com"
# Environment: local, staging, production
ENVIRONMENT=local
# Auth
JWT_SECRET_KEY=secret
SESSION_SECRET_KEY=secret
# 7 days = 24 * 8 = 168 hours
ACCESS_TOKEN_EXPIRE_HOURS=168
FIRST_SUPERUSER=admin@example.com
FIRST_SUPERUSER_PASSWORD=password
# Github OAuth
# Only single callback url per app is possible
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
# Postgres
POSTGRES_SERVER=localhost
POSTGRES_PORT=5433 # must be free on host
POSTGRES_DB=app
POSTGRES_USER=postgres
POSTGRES_PASSWORD=password
# Set either DATABASE_URL or POSTGRES_* variables, not both. DATABASE_URL overrides POSTGRES_* variables if both are set
# Use DATABASE_URL for Neon.
# Format: postgresql://<username>:<password>@<host>/<database>?<query>
DATABASE_URL=
# Emails
SMTP_HOST=
SMTP_USER=
SMTP_PASSWORD=
EMAILS_FROM_EMAIL=info@example.com
SMTP_TLS=True
SMTP_SSL=False
SMTP_PORT=587
# Sentry
SENTRY_DSN=