planetary-social / ansible-scripts

Ansible automation scripts used at Planetary
MIT License
2 stars 3 forks source link

Playbook for Reportinator Server #85

Open dcadenas opened 7 months ago

dcadenas commented 7 months ago

We need to configure an Ansible playbook for automating the deployment of our new Rust-based server, the Reportinator Server. The server automates moderation requests on the Nostr network and interfaces with Google Cloud PubSub for report publishing. The source code is hosted on GitHub: Reportinator Server. It also exposes an http endpoint for integration with Slack.

Deployment Specifications:

Required Environment Variables:

RELAY_ADDRESSES_CSV: wss://relay.nos.social REPORTINATOR_SECRET: Secret key for the Reportinator bot account. GOOGLE_APPLICATION_CREDENTIALS: Path to the Google Cloud credentials file, indicating the Docker volume mapping. SLACK_SIGNING_SECRET: Slack secret used to interact with the manual moderation channel.

Current Implementation:

The server currently does not depend on a database. It listens for direct messages from the Nostr network and from the https endpoint as its inputs and publishes moderation reports to a Google PubSub topic as its output.

Action Items:

dcadenas commented 7 months ago

@cooldracula I added SLACK_SIGNING_SECRET to the list of env vars

dcadenas commented 7 months ago

@cooldracula I added an entry for SSL termination for the /slack/interactions endpoint