.env.bridge.example raw
1 # Marmot Email Bridge — Environment Configuration
2 # Copy to .env.bridge and edit with your values:
3 # cp .env.bridge.example .env.bridge
4
5 # ─── Required ───────────────────────────────────────────────
6
7 # Email domain (the domain part of user@domain addresses)
8 ORLY_BRIDGE_DOMAIN=mail.example.com
9
10 # Nostr relay WebSocket URL (the bridge connects as a client)
11 ORLY_BRIDGE_RELAY_URL=wss://relay.example.com
12
13 # SMTP inbound port (receives email via MX records)
14 ORLY_BRIDGE_SMTP_PORT=2525
15 ORLY_BRIDGE_SMTP_HOST=0.0.0.0
16
17 # ─── Identity ──────────────────────────────────────────────
18
19 # Bridge identity (nsec bech32 or hex secret key)
20 # If omitted, auto-generates and saves to $ORLY_BRIDGE_DATA_DIR/bridge.nsec
21 #ORLY_BRIDGE_NSEC=
22
23 # ─── Data ──────────────────────────────────────────────────
24
25 # Data directory (stores bridge.nsec and subscriptions.json)
26 ORLY_BRIDGE_DATA_DIR=/data
27
28 # ─── DKIM ──────────────────────────────────────────────────
29
30 # Path to DKIM private key PEM file (mounted via volume)
31 #ORLY_BRIDGE_DKIM_KEY=/dkim/dkim-private.pem
32 #ORLY_BRIDGE_DKIM_SELECTOR=marmot
33
34 # ─── NWC (Lightning Payments) ─────────────────────────────
35
36 # NWC connection string for subscription invoices
37 # Get this from your wallet (Alby Hub, etc.)
38 #ORLY_BRIDGE_NWC_URI=nostr+walletconnect://...
39
40 # Subscription prices in satoshis
41 ORLY_BRIDGE_MONTHLY_PRICE_SATS=2100
42 ORLY_BRIDGE_ALIAS_PRICE_SATS=4200
43
44 # ─── Outbound SMTP (Smarthost) ────────────────────────────
45
46 # SMTP relay for outbound email delivery
47 # Required unless port 25 is open and your IP has good reputation
48 #ORLY_BRIDGE_SMTP_RELAY_HOST=smtp.mailgun.org
49 #ORLY_BRIDGE_SMTP_RELAY_PORT=587
50 #ORLY_BRIDGE_SMTP_RELAY_USERNAME=
51 #ORLY_BRIDGE_SMTP_RELAY_PASSWORD=
52
53 # ─── ACL (Optional) ───────────────────────────────────────
54
55 # gRPC address of ACL server for paid subscription management
56 # Only needed in split IPC mode with ACL enabled
57 #ORLY_BRIDGE_ACL_GRPC_SERVER=127.0.0.1:50052
58
59 # ─── Profile ─────────────────────────────────────────────
60
61 # Path to profile template file (email-header format)
62 # If present, bridge publishes a kind 0 metadata event on startup
63 # Default: $ORLY_BRIDGE_DATA_DIR/profile.txt
64 #ORLY_BRIDGE_PROFILE=/data/profile.txt
65
66 # ─── Logging ───────────────────────────────────────────────
67
68 ORLY_LOG_LEVEL=info
69