Skip to content

Commit cedbe20

Browse files
committed
chore(env): add JWT secret key requirement and update CORS origin
- Add JWT_SECRET_KEY to .env.example with explanation and generation instructions - Update CORS_ALLOWED_ORIGIN comment to clarify production requirement - Reorder environment variables for better clarity
1 parent 7150020 commit cedbe20

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.env.example

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
# The application cannot start without a database connection.
77
# DATABASE_URL="mongodb://user:password@localhost:27017/ht_api_db"
88

9+
# REQUIRED: A secure, randomly generated secret for signing JWTs.
10+
# The application cannot start without this.
11+
# Generate a secure key using: dart pub global run dcli_scripts create_key
12+
# JWT_SECRET_KEY="your-super-secret-and-long-jwt-key"
13+
914
# REQUIRED FOR PRODUCTION: The specific origin URL of your web client.
1015
# This allows the client (e.g., the HT Dashboard) to make requests to the API.
1116
# For local development, this can be left unset as 'localhost' is allowed by default.
12-
# CORS_ALLOWED_ORIGIN="https://your-dashboard.com"
17+
# CORS_ALLOWED_ORIGIN="https://your-dashboard.com"

0 commit comments

Comments
 (0)