#!/bin/sh # mx : Postfix -> pipe -> mas-gateway -> capture (JSONL evidence) -> ticket service # statute : static /.well-known/mas only (the only thing exposed over HTTPS) set -e DOMAIN="${MAS_DOMAIN:-mas.coulomb.social}" STATUTE_DIR="/app/examples/statute/$DOMAIN" if [ "$1" = "statute" ]; then exec python3 /app/examples/statute/serve.py "$STATUTE_DIR" --host 0.0.0.0 --port 8080 fi cat > /usr/local/bin/mas-gateway <