chefbible/env.example
taogaetz fe3f532a25 Add access PIN authentication and manage access cookies
- 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.
2025-09-14 15:01:03 -04:00

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