Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .env.1password
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 1Password Environment Template
# This file contains secret references to 1Password vault items
# Use with: op run --env-file=.env.1password -- command
# Or: op inject -i .env.1password -o .env

# ⚠️ DO NOT COMMIT THIS FILE - IT CONTAINS SECRET REFERENCES
# This file should be in .gitignore

# Required Cloudflare Secrets
# Create these items in your 1Password vault: "MD-Book-Deployment"
CLOUDFLARE_API_TOKEN="op://MD-Book-Deployment/Cloudflare/api_token"
CLOUDFLARE_ACCOUNT_ID="op://MD-Book-Deployment/Cloudflare/account_id"

# Optional Custom Domains
# Uncomment and set these if you have custom domains
# PRODUCTION_DOMAIN="op://MD-Book-Deployment/Domains/production"
# STAGING_DOMAIN="op://MD-Book-Deployment/Domains/staging"

# Build Configuration (these can remain as regular values)
INPUT_DIR=test_input
OUTPUT_DIR=dist
SKIP_TESTS=false
DEPLOY_WORKER=true

# Development Configuration
DEV_PORT=3000
WATCH_FILES=true

# Optional Analytics and Monitoring Secrets
# Uncomment and set these in 1Password if needed
# ANALYTICS_TOKEN="op://MD-Book-Deployment/Analytics/token"
# ERROR_REPORTING_DSN="op://MD-Book-Deployment/ErrorReporting/dsn"

# Optional Email Configuration for Feedback
# Uncomment and set these in 1Password if needed
# FEEDBACK_EMAIL="op://MD-Book-Deployment/Email/feedback_address"
# SMTP_HOST="op://MD-Book-Deployment/SMTP/host"
# SMTP_PORT="op://MD-Book-Deployment/SMTP/port"
# SMTP_USER="op://MD-Book-Deployment/SMTP/username"
# SMTP_PASS="op://MD-Book-Deployment/SMTP/password"

# GitHub Integration (for scripts that sync secrets)
# GITHUB_TOKEN="op://MD-Book-Deployment/GitHub/personal_access_token"

# 1Password Service Account for CI/CD
# This should be set as a GitHub repository secret, not here
# OP_SERVICE_ACCOUNT_TOKEN="ops_..."
48 changes: 48 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Cloudflare Configuration
# Get these from your Cloudflare dashboard

# Required: Your Cloudflare API Token
# Create at: https://dash.cloudflare.com/profile/api-tokens
# Permissions needed: Zone:Zone:Read, Zone:Page Rules:Edit, Account:Cloudflare Pages:Edit
CLOUDFLARE_API_TOKEN=your_api_token_here

# Required: Your Cloudflare Account ID
# Find at: https://dash.cloudflare.com/ (right sidebar)
CLOUDFLARE_ACCOUNT_ID=your_account_id_here

# Optional: Custom domain for production
# PRODUCTION_DOMAIN=docs.yourdomain.com

# Optional: Custom domain for staging
# STAGING_DOMAIN=staging-docs.yourdomain.com

# Build Configuration
# Input directory containing your Markdown files
INPUT_DIR=test_input

# Output directory for generated HTML files
OUTPUT_DIR=dist

# Skip tests during deployment (for faster deployments)
SKIP_TESTS=false

# Deploy Cloudflare Worker along with Pages
DEPLOY_WORKER=true

# Development Configuration
# Port for local development server
DEV_PORT=3000

# Enable file watching in development
WATCH_FILES=true

# Analytics and Monitoring (Optional)
# ANALYTICS_TOKEN=your_analytics_token
# ERROR_REPORTING_DSN=your_error_reporting_dsn

# Email notifications for feedback (Optional)
# FEEDBACK_EMAIL=feedback@yourdomain.com
# SMTP_HOST=smtp.yourdomain.com
# SMTP_PORT=587
# SMTP_USER=your_smtp_user
# SMTP_PASS=your_smtp_password
Loading
Loading