| 1 | # shithub environment example. Copy to .env and edit. .env is gitignored. |
| 2 | # |
| 3 | # Variables follow SHITHUB_<area>_<key> naming so they don't collide with |
| 4 | # system env. Nested config keys are joined with double-underscore in env |
| 5 | # (e.g. database.url -> SHITHUB_DATABASE__URL). |
| 6 | |
| 7 | # ----- web ----- |
| 8 | SHITHUB_WEB_ADDR=:8080 |
| 9 | |
| 10 | # ----- database (S01) ----- |
| 11 | # Used by `shithubd web`, `shithubd worker`, `shithubd migrate`, etc. |
| 12 | SHITHUB_DATABASE_URL=postgres://shithub:shithub_dev@127.0.0.1:5432/shithub?sslmode=disable |
| 13 | |
| 14 | # Used only by tests. The dbtest harness creates per-test DBs cloned from a |
| 15 | # template DB rooted under this server. |
| 16 | SHITHUB_TEST_DATABASE_URL=postgres://shithub:shithub_dev@127.0.0.1:5432/postgres?sslmode=disable |