Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chitoku-k/form-to-slack

Form submission to Slack messages.
https://github.com/chitoku-k/form-to-slack

golang recaptcha-v3 slack

Last synced: 13 days ago
JSON representation

Form submission to Slack messages.

Awesome Lists containing this project

README

        

form-to-slack
=============

[![][workflow-badge]][workflow-link]

Sends form submission to Slack.

## Requirements

- Go
- Secret key for a reCAPTCHA-compatible service
- Slack Webhook URL

## Installation

```sh
$ docker buildx build .
```

```sh
# Port number (required)
export PORT=8080

# TLS certificate and private key (optional; if not specified, form-to-slack is served over HTTP)
export TLS_CERT=/path/to/tls/cert
export TLS_KEY=/path/to/tls/key

# reCAPTCHA verify endpoint (optional; if not specified, it defaults to reCAPTCHA)
export RECAPTCHA_URL=https://www.google.com/recaptcha/api/siteverify

# reCAPTCHA secret key (required)
export RECAPTCHA_SECRET=

# Slack Webhook URL (required)
export SLACK_WEBHOOK_URL=

# Access-Control-Allow-Origin (optional; space-separated)
export ALLOWED_ORIGINS=
```

## Usage

```html






```

[workflow-link]: https://github.com/chitoku-k/form-to-slack/actions?query=branch:master
[workflow-badge]: https://img.shields.io/github/actions/workflow/status/chitoku-k/form-to-slack/ci.yml?branch=master&style=flat-square