mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
80 lines
2.8 KiB
Plaintext
80 lines
2.8 KiB
Plaintext
# ==============================================
|
|
# Biergarten App - Environment Variables Template
|
|
# ==============================================
|
|
#
|
|
# This file contains backend/Docker environment variables.
|
|
# Copy this to create environment-specific files:
|
|
# - .env.dev (development)
|
|
# - .env.test (testing)
|
|
# - .env.prod (production)
|
|
#
|
|
# For frontend variables, create a separate .env.local file
|
|
# in the Website/ directory. See README.md for complete docs.
|
|
#
|
|
# ==============================================
|
|
|
|
# ======================
|
|
# Database Configuration
|
|
# ======================
|
|
|
|
# SQL Server Connection Components (Recommended for Docker)
|
|
# These are used to build connection strings dynamically
|
|
DB_SERVER=sqlserver,1433
|
|
DB_NAME=Biergarten
|
|
DB_USER=sa
|
|
DB_PASSWORD=YourStrong!Passw0rd
|
|
|
|
# Alternative: Full Connection String (Local Development)
|
|
# If set, this overrides the component-based configuration above
|
|
# DB_CONNECTION_STRING=Server=localhost,1433;Database=Biergarten;User Id=sa;Password=YourStrong!Passw0rd;TrustServerCertificate=True;
|
|
|
|
# ======================
|
|
# JWT Configuration
|
|
# ======================
|
|
|
|
# JWT Secret for signing tokens
|
|
# IMPORTANT: Generate a secure secret (minimum 32 characters)
|
|
# Command: openssl rand -base64 32
|
|
ACCESS_TOKEN_SECRET=your-secure-jwt-secret-key
|
|
REFRESH_TOKEN_SECRET=your-secure-jwt-refresh-secret-key
|
|
CONFIRMATION_TOKEN_SECRET=your-secure-jwt-confirmation-secret-key
|
|
|
|
# ======================
|
|
# Frontend (Website) Configuration
|
|
# ======================
|
|
|
|
# Cookie session signing secret for the React Router website container
|
|
# IMPORTANT: Generate a secure secret (minimum 32 characters)
|
|
# Command: openssl rand -base64 32
|
|
SESSION_SECRET=your-secure-session-secret-key
|
|
|
|
# ======================
|
|
# SMTP Configuration
|
|
# ======================
|
|
# SMTP settings for sending emails (e.g., password resets)
|
|
# For development, you can use a local SMTP testing tool like Mailpit or MailHog
|
|
# In production, set these to real SMTP server credentials from an email service
|
|
# provider (e.g., SendGrid, Mailgun, Amazon SES).
|
|
SMTP_HOST=mailpit
|
|
SMTP_PORT=1025
|
|
SMTP_USERNAME=ayerble
|
|
SMTP_PASSWORD=checkers
|
|
SMTP_USE_SSL=false
|
|
SMTP_FROM_EMAIL=noreply@thebiergarten.app
|
|
SMTP_FROM_NAME=The Biergarten App
|
|
|
|
WEBSITE_BASE_URL=http://localhost:3000
|
|
|
|
# ======================
|
|
# SeaweedFS (S3) Configuration
|
|
# ======================
|
|
# Credentials and default bucket for the local SeaweedFS S3-compatible storage.
|
|
# SEAWEEDFS_SERVICE_URL is the in-network endpoint the API uploads through;
|
|
# SEAWEEDFS_PUBLIC_URL is the endpoint download URLs are signed against, so it has to be
|
|
# reachable from the browser. It defaults to SEAWEEDFS_SERVICE_URL when left blank.
|
|
SEAWEEDFS_SERVICE_URL=http://seaweedfs:8333
|
|
SEAWEEDFS_PUBLIC_URL=http://localhost:8333
|
|
SEAWEEDFS_ACCESS_KEY_ID=admin
|
|
SEAWEEDFS_SECRET_ACCESS_KEY=secret
|
|
SEAWEEDFS_BUCKET=my-bucket
|