This is a very simple backend service for a contact/feedback form on a website. It forwards messages over the Apprise API.
Examples where I use it:
- AutoPTT
- Keybind Practice (on the "About" tab)
- My Personal Site
Grab a release binary. Create a config.yml (see below). Run the server with
./feedbackIt will search for config.yml in the current working directory by default. You can change it with the environment variable FEEDBACK_CONFIG_PATH.
Javascript example
await fetch("https://feedback.example.com", {
method: "POST",
headers: {
"content-type": "application/json",
},
body: JSON.stringify({
subject: "My App", // required
source: location.origin, // required
message: "Hello there!", // required
email: "user@example.com", // optional
}),
})addr: 127.0.0.1:3000
apprise:
url: https://apprise.example.com/notify/exampleaddr: 127.0.0.1:3000
apprise:
url: https://apprise.example.com/notify
stateless_urls: ntfys://user:pass@ntfy.example.com/topicIn case you need to add extra headers (eg. for auth purposes) use apprise.headers:
apprise:
headers:
some_header: some_value
another_header: another_value