Wire founding override enforcement (TTL guard, periodic sweep, second- master auto-revoke, manual revocation) and replace the approve stub with a real Ed25519 signing flow through two bootstrap modes (self-sovereign and partner-hosted with Guildhouse as default partner). Pipeline now pauses at awaiting_approval, returns schematic_hash for the signer, and resumes via POST /api/approvals webhook. HostingAgreement table + HostingCeremony module support partner-hosted onboarding with auto-ratification for Guildhouse-as-partner. 70 tests, 0 failures. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Tyler J King <tking@guildhouse.dev>
61 lines
1.9 KiB
Elixir
61 lines
1.9 KiB
Elixir
import Config
|
|
|
|
# Ops DB development database
|
|
config :guildhall_ops_db, Guildhall.OpsDb.Repo,
|
|
username: "postgres",
|
|
password: "postgres",
|
|
hostname: "localhost",
|
|
database: "guildhall_dev",
|
|
stacktrace: true,
|
|
show_sensitive_data_on_connection_error: true,
|
|
pool_size: 10
|
|
|
|
# Phoenix endpoint — dev
|
|
config :guildhall_web, GuildhallWeb.Endpoint,
|
|
http: [ip: {127, 0, 0, 1}, port: 4000],
|
|
check_origin: false,
|
|
code_reloader: true,
|
|
debug_errors: true,
|
|
secret_key_base: "tdDDG32QQyJH7PescKIuKY/zdaykc4WASn04QH6JYH2Yo37ByUI6sq8zBNUQdd78",
|
|
watchers: [
|
|
esbuild: {Esbuild, :install_and_run, [:guildhall_web, ~w(--sourcemap=inline --watch)]},
|
|
tailwind: {Tailwind, :install_and_run, [:guildhall_web, ~w(--watch)]}
|
|
]
|
|
|
|
# Live reload patterns
|
|
config :guildhall_web, GuildhallWeb.Endpoint,
|
|
live_reload: [
|
|
web_console_logger: true,
|
|
patterns: [
|
|
~r"priv/static/(?!uploads/).*\.(js|css|png|jpeg|jpg|gif|svg)$",
|
|
~r"priv/gettext/.*\.po$",
|
|
~r"lib/guildhall_web_web/router\.ex$",
|
|
~r"lib/guildhall_web_web/(controllers|live|components)/.*\.(ex|heex)$"
|
|
]
|
|
]
|
|
|
|
config :guildhall_web, dev_routes: true
|
|
|
|
config :logger, :default_formatter, format: "[$level] $message\n"
|
|
config :phoenix, :stacktrace_depth, 20
|
|
config :phoenix, :plug_init_mode, :runtime
|
|
|
|
config :phoenix_live_view,
|
|
debug_heex_annotations: true,
|
|
debug_attributes: true,
|
|
enable_expensive_runtime_checks: true
|
|
|
|
config :guildhall_web, :oidc,
|
|
issuer: "https://auth.guildhouse.dev/realms/guildhouse",
|
|
client_id: "guildhall-web",
|
|
client_secret: System.get_env("OIDC_CLIENT_SECRET"),
|
|
redirect_uri: "http://localhost:4000/auth/callback"
|
|
|
|
config :guildhall_orchestrator,
|
|
ceremony_service_url: "localhost:50053",
|
|
schematic_service_url: "localhost:9091",
|
|
ffc_schematic_service_url: "localhost:9091",
|
|
founding_override_sweep_interval_ms: 3_600_000,
|
|
approval_webhook_secret: "dev-secret",
|
|
guildhouse_partner_slug: "guildhouse-ops",
|
|
guildhouse_auto_ratify_tiers: ["nsp"]
|