2022-08-02 10:41:17 +02:00
# Segfautils
2022-07-28 11:20:41 +02:00
Web utilities for Project Segfault
## What does it do?
For now it powers our contact form. In the future we will expand our APIs so you can do more cool things.
## Setup
2022-07-31 22:49:08 +02:00
### Docker:
2022-07-28 11:20:41 +02:00
```
2022-08-14 21:22:08 +02:00
docker run -d --restart=always -p 6893:6893 --name segfautils -v "$(pwd)"/data:/segfautils/data projectsegfault/segfautils:latest
2022-07-28 11:20:41 +02:00
```
2022-08-14 21:22:08 +02:00
You need to copy the ``config.example.toml` ` to ` ``config.toml` ` and customize the values in the config file. YAML works as well, if you'd like to use that instead.
2022-07-28 11:20:41 +02:00
2022-08-02 10:41:17 +02:00
We recommend using Docker as it provides better security (we suck in security, so that's why) and we are constantly updating Segfautils. Docker makes it easy to update the program.
2022-07-28 11:20:41 +02:00
2022-08-02 10:41:17 +02:00
If you're using Portainer, you should know how to add Segfautils.
2022-07-28 11:20:41 +02:00
### Manual (recommended for development)
` ``
2022-08-02 10:41:17 +02:00
git clone https://github.com/ProjectSegfault/segfautils
cd segfautils/
# You need to add the environment HCAPTCHA_SITE_KEY, HCAPTCHA_SECRET_KEY, SEGFAUTILS_WEBHOOK_URL and SEGFAUTILS_PORT.
go run main.go # Run this when you've done above, and you're planning on developing, if not, do below
go build . -o segfautils
./segfautils
2022-08-14 21:34:56 +02:00
` ``