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.
Segfautils/readme.md

28 lines
1.2 KiB
Markdown
Raw Normal View History

# Segfautils
Web utilities for Project Segfault
## What does it do?
2022-09-17 03:40:37 +05:30
For now it powers our contact form and our announcements page. In the future we will expand our APIs so you can do more cool things. (We currently do not have any new idea so please open issues and give us suggestions!!)
## Setup
### Docker:
```
docker run -d --restart=always -p 6893:6893 --name segfautils -v "$(pwd)"/data:/segfautils/data projectsegfault/segfautils:latest
```
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.
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.
If you're using Portainer, you should know how to add Segfautils.
### Manual (recommended for development)
```
git clone https://github.com/ProjectSegfault/segfautils
cd segfautils/
2022-09-17 03:40:37 +05:30
# You need to config file located in data/config.toml.
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-09-17 03:40:37 +05:30
```