Repository navigation
Expand file tree
/
Copy pathproduction.env.template
More file actions
97 lines (88 loc) · 5.41 KB
/
Copy pathproduction.env.template
File metadata and controls
97 lines (88 loc) · 5.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# ==============================================================================
# MORGANA - PRODUCTION ENVIRONMENT
# ==============================================================================
# For using official latest Morgana and Cauldron images from Docker Hub
#
# Usage:
# 1. Copy this file to .env
# 2. Fill in your secrets below
# 3. Manage docker image: docker compose up|down|...
# Note: `up` starts Morgana + Cauldron only. Grimoire's Spectre.Console TUI needs its own terminal, so launch it interactively in a separate shell:
# docker compose run --rm --service-ports --use-aliases grimoire
# `--use-aliases` is mandatory: `compose run` skips network aliases by default, so without it Morgana's webhook callback to http://grimoire:5004 fails DNS resolution.
# Alembic is profile-gated too, for an unrelated reason: it is the authoring workbench, talks to no Morgana instance and joins no network, so `up` skips it as well:
# docker compose --profile authoring up alembic
# ==============================================================================
# DOCKER VERSIONS
# ==============================================================================
MORGANA_VERSION=latest
CAULDRON_VERSION=latest
GRIMOIRE_VERSION=latest
RUNE_VERSION=latest
ALEMBIC_VERSION=latest
# ==============================================================================
# ENCRYPTION
# ==============================================================================
# AES-256 key (32 bytes) encoded in Base64 for encrypting SQLite databases
# Generate a new key with:
# Linux/Mac: openssl rand -base64 32
# PowerShell: $bytes = New-Object byte[] 32; [System.Security.Cryptography.RandomNumberGenerator]::Fill($bytes); [Convert]::ToBase64String($bytes)
ENCRYPTIONKEY=YOUR_BASE64_ENCODED_256_BIT_KEY_HERE
# ==============================================================================
# JWT AUTHENTICATION
# ==============================================================================
# HMAC-SHA256 symmetric key for JWT token signing between Cauldron and Morgana
# Generate a new key with:
# Linux/Mac: openssl rand -base64 32
# PowerShell: $bytes = New-Object byte[] 32; [System.Security.Cryptography.RandomNumberGenerator]::Fill($bytes); [Convert]::ToBase64String($bytes)
JWT_SYMMETRIC_KEY=YOUR_BASE64_ENCODED_256_BIT_KEY_HERE
# ==============================================================================
# AGENT-TO-AGENT WITH REMOTE INSTALLATIONS (optional)
# ==============================================================================
# Only for agents that consult a partner's agents ([ConsultsAgent("intent", "partner")])
# or a partner that consults agents here. Uncomment these and the matching lines in
# docker-compose.yml together: a partner declared with empty values is refused at startup.
#
# Where partners reach this installation: absolute http(s) address, never a wildcard host.
#MORGANA_PUBLIC_URL=https://morgana.your-domain.example
#
# One partner. Its name is what [ConsultsAgent] writes, never a hostname ("morgana" is reserved).
# The key is shared with that partner alone, generated like the keys above.
#PARTNER_0_NAME=acme
#PARTNER_0_URL=https://morgana.acme.example
#PARTNER_0_SYMMETRIC_KEY=YOUR_BASE64_ENCODED_256_BIT_KEY_HERE
# The name the partner knows this installation by, from its own declaration of the relationship.
#PARTNER_0_OUTBOUND_ISSUER=YOUR_NAME_AT_THE_PARTNER
# How many conversations the partner may open here within a sliding hour.
#PARTNER_0_MAX_CONVERSATIONS_PER_HOUR=60
# ==============================================================================
# LLM TIERS
# ==============================================================================
# Each tier picks its own provider by name, among those deployed in plugins/:
# "Anthropic", "AzureOpenAI", "Google", "Ollama" and "OpenAI" ship with Morgana.
# All three tiers are mandatory; no tier falls back to another. Economy, Efficiency and
# Performance go from the cheapest model to the most capable: the Anthropic models below
# are only an example. ApiKey is used by Anthropic, AzureOpenAI, Google and OpenAI, Endpoint by
# AzureOpenAI and Ollama: leave the unused one empty.
# ModelId is the model id or, on Azure, the deployment name.
# Each provider ships a list of its models with their prices and MaxOutputTokens, the ceiling of a
# single model call, which a tier inherits from the model it names. A model missing from that list
# (every AzureOpenAI deployment, a local Ollama model) declares its own four prices as
# Morgana__LanguageModels__Tiers__{Tier}__Pricing__{InputUsdPerMillion|OutputUsdPerMillion|
# CacheReadUsdPerMillion|CacheWriteUsdPerMillion}, in the environment of a docker-compose.override.yml.
# The same four prices override the shipped list for a listed model, a negotiated discount for instance,
# as Morgana__LanguageModels__Tiers__{Tier}__Options__MaxOutputTokens overrides its ceiling.
#LLM_ECONOMY_PROVIDER=Anthropic
#LLM_ECONOMY_APIKEY=sk-ant-api03-YOUR_KEY_HERE
#LLM_ECONOMY_ENDPOINT=
#LLM_ECONOMY_MODEL=claude-haiku-5-5
#LLM_EFFICIENCY_PROVIDER=Anthropic
#LLM_EFFICIENCY_APIKEY=sk-ant-api03-YOUR_KEY_HERE
#LLM_EFFICIENCY_ENDPOINT=
#LLM_EFFICIENCY_MODEL=claude-sonnet-5-5
#LLM_PERFORMANCE_PROVIDER=Anthropic
#LLM_PERFORMANCE_APIKEY=sk-ant-api03-YOUR_KEY_HERE
#LLM_PERFORMANCE_ENDPOINT=
#LLM_PERFORMANCE_MODEL=claude-opus-5-5
# Tier on which Morgana's own framework actors (guard, classifier, presenter, channel adapter) run.
#ACTORSYSTEM_TIER=Economy