|
| 1 | +# ============================================================================= |
| 2 | +# Craftplan — Environment Configuration |
| 3 | +# ============================================================================= |
| 4 | +# Copy this file to .env and fill in the required values. |
| 5 | +# |
| 6 | +# cp .env.example .env |
| 7 | +# |
| 8 | +# Works with both docker-compose.yml (pre-built image) and standalone docker run. |
| 9 | +# Then generate the secrets below before starting the app. |
| 10 | + |
| 11 | +# ----------------------------------------------------------------------------- |
| 12 | +# Required Secrets |
| 13 | +# ----------------------------------------------------------------------------- |
| 14 | + |
| 15 | +# Phoenix secret key (min 64 bytes). Generate with: |
| 16 | +# mix phx.gen.secret |
| 17 | +# Or without Elixir installed: |
| 18 | +# docker run --rm hexpm/elixir:1.18.3-erlang-27.2.4-debian-bookworm-20260112-slim \ |
| 19 | +# sh -c "mix local.hex --force --if-missing >/dev/null 2>&1 && mix phx.gen.secret" |
| 20 | +SECRET_KEY_BASE= |
| 21 | + |
| 22 | +# Token signing secret for API authentication. Generate the same way: |
| 23 | +# mix phx.gen.secret |
| 24 | +TOKEN_SIGNING_SECRET= |
| 25 | + |
| 26 | +# Cloak encryption key (32-byte AES key, base64-encoded). Generate with: |
| 27 | +# elixir -e ":crypto.strong_rand_bytes(32) |> Base.encode64() |> IO.puts()" |
| 28 | +# Or without Elixir installed: |
| 29 | +# docker run --rm hexpm/elixir:1.18.3-erlang-27.2.4-debian-bookworm-20260112-slim \ |
| 30 | +# elixir -e ":crypto.strong_rand_bytes(32) |> Base.encode64() |> IO.puts()" |
| 31 | +CLOAK_KEY= |
| 32 | + |
| 33 | +# PostgreSQL password for the bundled database container. |
| 34 | +POSTGRES_PASSWORD= |
| 35 | + |
| 36 | +# ----------------------------------------------------------------------------- |
| 37 | +# Host & Networking |
| 38 | +# ----------------------------------------------------------------------------- |
| 39 | + |
| 40 | +# The public hostname of your Craftplan instance (used for URLs, CORS, etc.) |
| 41 | +HOST=localhost |
| 42 | + |
| 43 | +# Port the web server listens on (default: 4000) |
| 44 | +PORT=4000 |
| 45 | + |
| 46 | +# ----------------------------------------------------------------------------- |
| 47 | +# File Storage (S3 / MinIO) |
| 48 | +# ----------------------------------------------------------------------------- |
| 49 | +# The bundled MinIO service works out of the box with the defaults below. |
| 50 | +# To use an external S3 provider, set these values accordingly. |
| 51 | + |
| 52 | +# MINIO_ROOT_USER=minioadmin |
| 53 | +# MINIO_ROOT_PASSWORD=minioadmin |
| 54 | +# AWS_S3_BUCKET=craftplan |
| 55 | + |
| 56 | +# For external S3 (uncomment and set): |
| 57 | +# AWS_ACCESS_KEY_ID= |
| 58 | +# AWS_SECRET_ACCESS_KEY= |
| 59 | +# AWS_S3_SCHEME=https:// |
| 60 | +# AWS_S3_HOST=s3.amazonaws.com |
| 61 | +# AWS_REGION=us-east-1 |
| 62 | +# AWS_ASSET_HOST=https://your-bucket.s3.amazonaws.com |
| 63 | + |
| 64 | +# ----------------------------------------------------------------------------- |
| 65 | +# Email (Optional) |
| 66 | +# ----------------------------------------------------------------------------- |
| 67 | +# Email is primarily configured from the Settings UI inside the app. |
| 68 | +# These environment variables are a fallback for automated/headless setups. |
| 69 | +# |
| 70 | +# Supported providers: sendgrid, postmark, brevo, mailgun, amazon_ses |
| 71 | +# |
| 72 | +# EMAIL_PROVIDER= |
| 73 | +# EMAIL_API_KEY= |
| 74 | +# |
| 75 | +# Mailgun only: |
| 76 | +# EMAIL_API_DOMAIN= |
| 77 | +# |
| 78 | +# Amazon SES only: |
| 79 | +# EMAIL_API_SECRET= |
| 80 | +# EMAIL_API_REGION=us-east-1 |
| 81 | +# |
| 82 | +# SMTP (alternative to API providers): |
| 83 | +# SMTP_HOST= |
| 84 | +# SMTP_PORT=587 |
| 85 | +# SMTP_USERNAME= |
| 86 | +# SMTP_PASSWORD= |
0 commit comments