-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
executable file
·77 lines (65 loc) · 2.23 KB
/
.env.example
File metadata and controls
executable file
·77 lines (65 loc) · 2.23 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Copy this file to .env and fill in the values. Do NOT commit real secrets.
# This is an example of the environment variables used by the Sono API.
# -----------------------------
# Database
# -----------------------------
POSTGRES_USER=postgres
POSTGRES_PASSWORD=YOUR_POSTGRES_PASSWORD
POSTGRES_DB=sonodb
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_SERVER=localhost
# The app builds DATABASE_URL dynamically using the values above.
# You can either set DATABASE_URL directly or keep the template here.
DATABASE_URL="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"
PROJECT_NAME="Sono API"
# -----------------------------
# Security / Tokens
# -----------------------------
# Use a long, random secret for TOKEN keys.
SECRET_KEY="YOUR_SECRET_KEY"
REFRESH_TOKEN_SECRET_KEY="YOUR_REFRESH_TOKEN_SECRET_KEY"
ALGORITHM="HS256"
ACCESS_TOKEN_EXPIRE_MINUTES=60
REFRESH_TOKEN_EXPIRE_MINUTES=5256000
REFRESH_TOKEN_ALGORITHM=HS256
# -----------------------------
# MinIO / S3-compatible storage
# -----------------------------
MINIO_ENDPOINT=minio:9000
MINIO_PUBLIC_URL=http://localhost:9000
MINIO_ACCESS_KEY=YOUR_MINIO_ACCESS_KEY
MINIO_SECRET_KEY=YOUR_MINIO_SECRET_KEY
MINIO_BUCKET_NAME="profile-pictures"
# Credentials for managing MinIO (when running local instance)
MINIO_ROOT_USER=YOUR_MINIO_ROOT_USER
MINIO_ROOT_PASSWORD=YOUR_MINIO_ROOT_PASSWORD
MINIO_AGPL_LICENSE=accept
# -----------------------------
# Ports / runtime
# -----------------------------
API_PORT=8000
DB_EXPOSE_PORT=5432
# -----------------------------
# Admin / tooling
# -----------------------------
PGADMIN_DEFAULT_EMAIL=admin@admin.com
PGADMIN_DEFAULT_PASSWORD=YOUR_PGADMIN_PASSWORD
# -----------------------------
# SMTP / Email
# -----------------------------
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USERNAME=no-reply@example.com
SMTP_PASSWORD=YOUR_SMTP_PASSWORD
SMTP_FROM="Sono Security <no-reply@example.com>"
FRONTEND_URL=https://web.sono.wtf
# -----------------------------
# Kworb Scraper Database (External)
# https://github.com/appsono/kworb-listeners-scraper
# -----------------------------
KWORB_DB_HOST=localhost
KWORB_DB_PORT=5433
KWORB_DB_USER=kworb_scraper
KWORB_DB_PASSWORD=YOUR_KWORB_DB_PASSWORD
KWORB_DB_NAME=kworb_data