-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env
72 lines (56 loc) · 3.19 KB
/
.env
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
###############################################################################
# BitcoinTX - Project Environment Variables #
###############################################################################
# PROJECT INFORMATION
# -------------------
# PROJECT_NAME: The name of the project.
VITE_PROJECT_NAME=BitcoinTX
# ENVIRONMENT: The current environment. This can be "development", "staging", or "production".
VITE_ENVIRONMENT=development
# DEBUG: Set to True during development for verbose error messages and logging.
DEBUG=True
###############################################################################
# Frontend Environment Variables #
###############################################################################
# VITE_API_BASE_URL:
# This is the base URL that the Vite-powered frontend will use to make API requests.
# It should point to the backend API endpoint.
VITE_API_BASE_URL=http://127.0.0.1:8000/api
###############################################################################
# Backend Environment Variables #
###############################################################################
# DATABASE_FILE:
# Specifies the relative path (from the project root) to the SQLite database file.
# This ensures portability: the database file will be located in the specified folder.
DATABASE_FILE=backend/bitcoin_tracker.db
# DATABASE_URL (Optional):
# You can optionally set DATABASE_URL to an absolute SQLite URL.
# If DATABASE_URL is not provided, the code in backend/database.py will construct one
# from DATABASE_FILE. To use an absolute path, you could uncomment and set it like:
# DATABASE_URL=sqlite:////absolute/path/to/bitcoin_tracker.db
# (Note: Do not include a user-specific path for distribution.)
# DATABASE_URL=sqlite:////Users/your_username/BitcoinTX_FastPython/backend/bitcoin_tracker.db
# SECRET_KEY:
# This key is used for signing JWT tokens and for other sensitive security operations.
# In a production environment, make sure to set this to a strong, unpredictable value.
SECRET_KEY=your_secret_key_here
# CORS_ALLOW_ORIGINS:
# A comma-separated list of allowed origins for Cross-Origin Resource Sharing (CORS).
# This ensures that only requests from these origins are accepted by the backend.
CORS_ALLOW_ORIGINS=http://127.0.0.1:5173,http://localhost:5173
# PYTHONPATH:
# (Optional) Helps during development ...
PYTHONPATH=backend
# JWT Settings:
# JWT_ALGORITHM: The algorithm used to sign JWT tokens (commonly HS256).
JWT_ALGORITHM=HS256
# JWT_ACCESS_TOKEN_EXPIRE_MINUTES: The number of minutes before a JWT access token expires.
JWT_ACCESS_TOKEN_EXPIRE_MINUTES=30
# LOG_LEVEL:
# The logging level for backend operations (e.g., DEBUG, INFO, WARNING, ERROR).
LOG_LEVEL=INFO
###############################################################################
# Additional Environment Variables (Future Use) #
###############################################################################
# Add any additional environment variables below as needed for future development.
# For example, API keys for external services, database pooling settings, etc.