mirror of
https://github.com/taogaetz/chefbible.git
synced 2025-12-06 11:47:24 -05:00
- Introduced ACCESS_PIN in env.example for site access control. - Updated Locals interface to include hasAccess boolean for access management. - Implemented access check in hooks.server.ts to redirect users without access to the /access page. - Cleared access cookie on logout to ensure proper session management.
16 lines
481 B
Plaintext
16 lines
481 B
Plaintext
# ChefBible Environment Variables
|
|
# Copy this file to .env and customize the values
|
|
# These variables are used by docker-compose.yml
|
|
|
|
# Application URL (required)
|
|
ORIGIN=https://your-domain.com
|
|
|
|
# Authentication token (required - generate a secure random token)
|
|
MAGIC_LINK_TOKEN=your-secure-token-here
|
|
|
|
# Access PIN code (required - set a PIN for site access)
|
|
ACCESS_PIN=1234
|
|
|
|
# Cloudinary URL for photo uploads (optional)
|
|
CLOUDINARY_URL=cloudinary://api_key:api_secret@cloud_name
|