This repository has been archived on 2022-10-30. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Odyssey346 68e2c6475e
oops i forgot how env files work 💀💀💀💀💀
2022-08-01 22:34:20 +02:00
.github docker workflow 2022-07-29 16:39:52 +02:00
api use your own webhook you leech and fix akisbug 2022-07-29 23:51:10 +02:00
otherthings some changes to stuff 2022-07-31 22:49:08 +02:00
static use your own webhook you leech and fix akisbug 2022-07-29 23:51:10 +02:00
docker.env oops i forgot how env files work 💀💀💀💀💀 2022-08-01 22:34:20 +02:00
Dockerfile clean go cache after compile (Docker) 2022-07-31 22:28:51 +02:00
go.mod this looks nicer 2022-07-28 11:21:02 +02:00
go.sum I wil deal with this later I guess 2022-07-26 15:14:52 +02:00
LICENSE more initial than your 2022-07-20 10:57:12 +02:00
main.go use your own webhook you leech and fix akisbug 2022-07-29 23:51:10 +02:00
readme.md some changes to stuff 2022-07-31 22:49:08 +02:00
shell.nix so I don't have to do this all the damn time 2022-07-27 13:54:02 +02:00

Segfautilities

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

Docker:

docker run -d --restart=always -p 6893:6893 --name segfautilities projectsegfault/segfautilities:latest --env-file ./docker.env

docker.env should be the environment file located in this repository, customized to your settings. The env file is self-documenting so I don't need to go in any detail here.

We recommend using Docker as it provides better security (we suck in security, so that's why) and we are constantly updating Segfautilities. Docker makes it easy to update the program.

If you're using Portainer, you should know how to add Segfautilities.

git clone https://github.com/ProjectSegfault/segfautilities
cd segfautilities/
# You need to add the environment HCAPTCHA_SITE_KEY, HCAPTCHA_SECRET_KEY, SEGFAUTILITIES_WEBHOOK_URL and SEGFAUTILITIES_PORT.
go run main.go # Run this when you've done above!

NixOS

git clone https://github.com/ProjectSegfault/segfautilities
cd segfautilities/
nix-shell # Avoid installing Go and setting up the web port, by just running a nix shell
# You still need the environment variables HCAPTCHA_SITE_KEY, HCAPTCHA_SECRET_KEY and SEGFAUTILITIES_WEBHOOK_URL though!
go run main.go # I wonder if this is good practice or not. If this isn't good practice, make a GitHub issue please.