feat: implement Mattermost proxy mirror with configuration and scripts for capturing traffic
This commit is contained in:
31
scripts/mattermost-proxy/.env.example
Normal file
31
scripts/mattermost-proxy/.env.example
Normal file
@@ -0,0 +1,31 @@
|
||||
# Mattermost proxy mirror configuration.
|
||||
# Copy to .env if you want local overrides. Do not commit .env.
|
||||
|
||||
# Restrict capture to the Mattermost host. Use the host only, no scheme.
|
||||
# Example: mattermost.example.com
|
||||
MATTERMOST_MIRROR_HOST_ALLOW=
|
||||
|
||||
# Output directory for raw evidence and normalized AI-readable context.
|
||||
MATTERMOST_MIRROR_DIR=ai/inbox/mattermost-mirror
|
||||
|
||||
# mitmproxy listener used by launch-mattermost.sh.
|
||||
MATTERMOST_MIRROR_LISTEN_HOST=127.0.0.1
|
||||
MATTERMOST_MIRROR_LISTEN_PORT=8080
|
||||
|
||||
# Keep the small AI context window bounded.
|
||||
MATTERMOST_MIRROR_LATEST_LIMIT=200
|
||||
|
||||
# Optional channel allowlist. Comma-separated channel IDs. Empty means all captured channels.
|
||||
MATTERMOST_MIRROR_CHANNEL_IDS=
|
||||
|
||||
# Write compact raw REST/WebSocket evidence in addition to normalized messages.
|
||||
# Keep disabled by default to avoid large files.
|
||||
MATTERMOST_MIRROR_WRITE_RAW=0
|
||||
|
||||
# Mattermost desktop app bundle / binary.
|
||||
MATTERMOST_APP_PATH=/Applications/Mattermost.app
|
||||
MATTERMOST_APP_BIN=/Applications/Mattermost.app/Contents/MacOS/Mattermost
|
||||
|
||||
# Default uses macOS `open -n ... --args` because direct Electron binary launch
|
||||
# can crash sandboxed desktop apps. Set to `binary` only for debugging.
|
||||
MATTERMOST_MIRROR_LAUNCH_MODE=open
|
||||
Reference in New Issue
Block a user