|
| 1 | +# Configuration — Projects |
| 2 | + |
| 3 | +From version 1.11, Buggregator lets you use "projects" to help organize your data better. Projects are |
| 4 | +super useful for keeping your data organized. |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | +**Here’s why you might want to use projects:** |
| 9 | + |
| 10 | +1. Projects help you keep data from different teams or parts of your app separate. This means it's easier to find what |
| 11 | + you're looking for and keep track of changes. |
| 12 | +2. Teams won’t get mixed up with data that isn’t relevant to them, which makes their work faster and less confusing. |
| 13 | + |
| 14 | +### Default Project |
| 15 | + |
| 16 | +When you start the server, Buggregator automatically sets up a default project with key `default`. All your data goes |
| 17 | +into this `default` project if a project key is not specified in the request. |
| 18 | + |
| 19 | +## Docker Configuration |
| 20 | + |
| 21 | +Currently, Buggregator does not have an admin interface for managing projects. Instead, you manage them through |
| 22 | +configuration files within a Docker container. |
| 23 | + |
| 24 | +**Here's how you can mount a volume containing webhook configurations:** |
| 25 | + |
| 26 | +```bash |
| 27 | +docker run --pull always \ |
| 28 | + -v /path/to/projects:/app/runtime/configs \ |
| 29 | + ghcr.io/buggregator/server:latest |
| 30 | +``` |
| 31 | + |
| 32 | +or using `docker-compose`: |
| 33 | + |
| 34 | +```yaml |
| 35 | +buggregator-server: |
| 36 | + ... |
| 37 | + volumes: |
| 38 | + - /path/to/projects:/app/runtime/configs |
| 39 | +``` |
| 40 | +
|
| 41 | +## Configuring a Project |
| 42 | +
|
| 43 | +Place each project configuration in a YAML file within the `runtime/configs` directory. Each configuration file should |
| 44 | +contain one project setup. |
| 45 | + |
| 46 | +Here’s what a typical webhook configuration looks like in a YAML file `dev.project.yaml`: |
| 47 | + |
| 48 | +```yaml |
| 49 | +project: |
| 50 | + key: dev |
| 51 | + name: Dev environment |
| 52 | +``` |
| 53 | + |
| 54 | +> **Note:** The project configuration file name should have the following pattern: `<name>.project.yaml` |
| 55 | +> or `<name>.project.yml`. |
| 56 | + |
| 57 | +## Sentry Configuration |
| 58 | + |
| 59 | +To use Sentry with your project, format your DSN like this: |
| 60 | + |
| 61 | +```dotenv |
| 62 | +SENTRY_DSN=http://<secret_key>@127.0.0.1:8000/<project_key> |
| 63 | +``` |
| 64 | + |
| 65 | +> **Note:** Read more about Sentry configuration [here](/config/sentry.html). |
| 66 | + |
| 67 | +## Inspector Configuration |
| 68 | + |
| 69 | +To use Inspector with your project, format your DSN like this: |
| 70 | + |
| 71 | +```dotenv |
| 72 | +INSPECTOR_URL=http://inspector:<project_key>@127.0.0.1:8000 |
| 73 | +INSPECTOR_API_KEY=<secret_key> |
| 74 | +``` |
| 75 | + |
| 76 | +> **Note:** Read more about Inspector configuration [here](/config/inspector.html). |
| 77 | + |
| 78 | +## Xhprof Profiler Configuration |
| 79 | + |
| 80 | +To set up the Profiler, use this: |
| 81 | + |
| 82 | +```dotenv |
| 83 | +PROFILER_ENDPOINT=http://profiler:<project_key>@127.0.0.1:8000 |
| 84 | +``` |
| 85 | + |
| 86 | +> **Note:** Read more about Xhprof Profiler configuration [here](/config/xhprof.html). |
| 87 | + |
| 88 | +## Ray Configuration |
| 89 | + |
| 90 | +For Ray, use these settings: |
| 91 | + |
| 92 | +```dotenv |
| 93 | +RAY_HOST=ray:<project_key>@127.0.0.1 |
| 94 | +RAY_PORT=8082 |
| 95 | +``` |
| 96 | + |
| 97 | +## VarDumper Configuration |
| 98 | + |
| 99 | +At this moment, VarDumper does not support projects. |
| 100 | + |
| 101 | +## Monolog Configuration |
| 102 | + |
| 103 | +At this moment, Monolog does not support projects. |
0 commit comments