Update .env.example
Browse files- .env.example +24 -25
.env.example
CHANGED
|
@@ -5,52 +5,51 @@ PORT=7000
|
|
| 5 |
BASE_URL=http://localhost:7000
|
| 6 |
|
| 7 |
# PostgreSQL database connection settings
|
| 8 |
-
DB_USER=
|
| 9 |
-
DB_HOST=
|
| 10 |
-
DB_NAME=
|
| 11 |
-
DB_PASSWORD=
|
| 12 |
-
DB_PORT=
|
| 13 |
-
DB_MAX_CONNECTIONS=20
|
| 14 |
-
DB_IDLE_TIMEOUT=30000
|
| 15 |
-
DB_CONNECTION_TIMEOUT=2000
|
| 16 |
|
| 17 |
# Redis cache configuration
|
| 18 |
-
REDIS_HOST=
|
| 19 |
-
REDIS_PORT=6379
|
| 20 |
-
REDIS_PASSWORD=
|
| 21 |
|
|
|
|
| 22 |
# These credentials are required to interact with the Trakt API and access its services.
|
| 23 |
# To obtain these credentials:
|
| 24 |
# 1. Create an account on Trakt.tv (https://trakt.tv).
|
| 25 |
# 2. Go to the applications section (https://trakt.tv/oauth/applications).
|
| 26 |
# 3. Create a new application by filling in the required information (name, description, etc.).
|
| 27 |
# - For the "Redirect URL", use the following format: BASE_URL + /callback (e.g., http://localhost:7000/callback).
|
| 28 |
-
TRAKT_CLIENT_ID=
|
| 29 |
-
TRAKT_CLIENT_SECRET=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
# Allows you to define the interval for synchronizing the Trakt watch history
|
| 32 |
# The value can be expressed in hours (h) or days (d)
|
| 33 |
# Default is '1d'
|
| 34 |
TRAKT_HISTORY_FETCH_INTERVAL=1d
|
| 35 |
|
| 36 |
-
#
|
| 37 |
-
# Helps improve performance by anticipating future requests
|
| 38 |
-
# Default is '5'
|
| 39 |
-
PREFETCH_PAGE_COUNT=5
|
| 40 |
-
|
| 41 |
-
# Cache duration settings for different content types
|
| 42 |
-
# Default is '3' for both
|
| 43 |
-
CACHE_CATALOG_CONTENT_DURATION_DAYS=3
|
| 44 |
-
CACHE_POSTER_CONTENT_DURATION_DAYS=7
|
| 45 |
-
|
| 46 |
# Possible values are: info, debug
|
| 47 |
-
# Default is 'info' if not specified; 'debug' provides more detailed logs
|
| 48 |
LOG_LEVEL=info
|
| 49 |
|
| 50 |
# The value can be expressed in days (d), weeks (w), or months (M)
|
| 51 |
# For example, '3d' means that log files will be kept for 3 days before being deleted
|
| 52 |
-
# If LOG_INTERVAL_DELETION is not defined in the environment variables, the default value is '3d'
|
| 53 |
LOG_INTERVAL_DELETION=3d
|
| 54 |
|
| 55 |
# The environment in which the Node.js application is running
|
| 56 |
NODE_ENV=production
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
BASE_URL=http://localhost:7000
|
| 6 |
|
| 7 |
# PostgreSQL database connection settings
|
| 8 |
+
DB_USER=postgres.akhxzgkbjjgypwcpujan # Username for PostgreSQL authentication
|
| 9 |
+
DB_HOST=aws-0-eu-west-1.pooler.supabase.com # PostgreSQL server hostname or IP
|
| 10 |
+
DB_NAME=postgres # Name of the database to connect to
|
| 11 |
+
DB_PASSWORD=JEvN5FYgvu3zXLhN # Password for the PostgreSQL user
|
| 12 |
+
DB_PORT=6543 # Port number where PostgreSQL is running
|
| 13 |
+
DB_MAX_CONNECTIONS=20 # Maximum number of active connections allowed to the database
|
| 14 |
+
DB_IDLE_TIMEOUT=30000 # Time (in ms) to close idle database connections
|
| 15 |
+
DB_CONNECTION_TIMEOUT=2000 # Timeout (in ms) to establish a new database connection
|
| 16 |
|
| 17 |
# Redis cache configuration
|
| 18 |
+
REDIS_HOST=relaxing-flea-30894.upstash.io # Redis server hostname or IP
|
| 19 |
+
REDIS_PORT=6379 # Port number where Redis is running
|
| 20 |
+
REDIS_PASSWORD=AXiuAAIncDFlOThmNWMzMTFhMjY0N2YwYmEyN2NkOGU1MWVmYmRmYnAxMzA4OTQ # Password for Redis authentication
|
| 21 |
|
| 22 |
+
# Trakt API credentials
|
| 23 |
# These credentials are required to interact with the Trakt API and access its services.
|
| 24 |
# To obtain these credentials:
|
| 25 |
# 1. Create an account on Trakt.tv (https://trakt.tv).
|
| 26 |
# 2. Go to the applications section (https://trakt.tv/oauth/applications).
|
| 27 |
# 3. Create a new application by filling in the required information (name, description, etc.).
|
| 28 |
# - For the "Redirect URL", use the following format: BASE_URL + /callback (e.g., http://localhost:7000/callback).
|
| 29 |
+
TRAKT_CLIENT_ID=your_trakt_client_id
|
| 30 |
+
TRAKT_CLIENT_SECRET=your_trakt_client_secret
|
| 31 |
+
|
| 32 |
+
# Content cache duration
|
| 33 |
+
# The value can be expressed in hours (h) or days (d)
|
| 34 |
+
# Default is '1d'
|
| 35 |
+
TMDB_CACHE_DURATION=1d
|
| 36 |
+
TRAKT_CACHE_DURATION=1d
|
| 37 |
|
| 38 |
# Allows you to define the interval for synchronizing the Trakt watch history
|
| 39 |
# The value can be expressed in hours (h) or days (d)
|
| 40 |
# Default is '1d'
|
| 41 |
TRAKT_HISTORY_FETCH_INTERVAL=1d
|
| 42 |
|
| 43 |
+
# Logging level configuration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
# Possible values are: info, debug
|
|
|
|
| 45 |
LOG_LEVEL=info
|
| 46 |
|
| 47 |
# The value can be expressed in days (d), weeks (w), or months (M)
|
| 48 |
# For example, '3d' means that log files will be kept for 3 days before being deleted
|
|
|
|
| 49 |
LOG_INTERVAL_DELETION=3d
|
| 50 |
|
| 51 |
# The environment in which the Node.js application is running
|
| 52 |
NODE_ENV=production
|
| 53 |
+
|
| 54 |
+
# Upstash Redis REST token
|
| 55 |
+
UPSTASH_REDIS_REST_TOKEN=AXiuAAIncDFlOThmNWMzMTFhMjY0N2YwYmEyN2NkOGU1MWVmYmRmYnAxMzA4OTQ
|