Skip to content

Deploy inquiry-notifier service on maybelle #357

Description

@magent-cryptograss

Context

Built a notification service for EPK contact form and mailing list signups. Code exists but not yet deployed.

Service Location

/home/magent/workspace/maybelle-config/inquiry-notifier/

Features

  • Express.js server on port 3001
  • POST /inquiry - booking inquiries → Telegram notification
  • POST /subscribe - mailing list signups → Telegram notification
  • Security: rate limiting (5 req/min/IP), honeypot fields, input sanitization, CORS whitelist

Deployment Needs

  1. Create Telegram bot via @Botfather
  2. Add secrets to maybelle vault:
    • TELEGRAM_BOT_TOKEN
    • TELEGRAM_CHAT_ID
  3. Add to docker-compose.maybelle.yml
  4. Add Caddy route for api.cryptograss.live

Files

  • server.js - main service
  • package.json - dependencies (express, cors)
  • Dockerfile - container build
  • README.md - setup instructions

EPK Integration

EPK forms already point to https://api.cryptograss.live/inquiry and /subscribe
Once deployed, forms will work automatically.

Future Enhancement

  • Store mailing list emails in PostgreSQL (alongside Memory Lane)
  • Add email notifications in addition to Telegram

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions