Change Appname from "chat" to "neoirc" in cmd/chatd/main.go
Change default DBURL from file:./data.db?_journal_mode=WAL to file:///var/lib/neoirc/state.db?_journal_mode=WAL in both internal/config/config.go and the internal/db/db.go fallback
Create /var/lib/neoirc/ directory in Dockerfile with proper ownership for the chat user
Update README.md to reflect new defaults (DBURL table, .env example, docker run example, SQLite backup/location docs)
Remove stale data.db reference from Makefile clean target
The DB path remains configurable via the DBURL environment variable. No Go packages were renamed.
## Changes
- Change `Appname` from `"chat"` to `"neoirc"` in `cmd/chatd/main.go`
- Change default `DBURL` from `file:./data.db?_journal_mode=WAL` to `file:///var/lib/neoirc/state.db?_journal_mode=WAL` in both `internal/config/config.go` and the `internal/db/db.go` fallback
- Create `/var/lib/neoirc/` directory in Dockerfile with proper ownership for the `chat` user
- Update README.md to reflect new defaults (DBURL table, `.env` example, docker run example, SQLite backup/location docs)
- Remove stale `data.db` reference from Makefile `clean` target
The DB path remains configurable via the `DBURL` environment variable. No Go packages were renamed.
Closes https://git.eeqj.de/sneak/chat/issues/44
- Change Appname from "chat" to "neoirc" in cmd/chatd/main.go
- Change default DBURL from file:./data.db to file:///var/lib/neoirc/state.db
in both internal/config/config.go and internal/db/db.go fallback
- Create /var/lib/neoirc/ directory in Dockerfile with proper ownership
- Update README.md to reflect new defaults (DBURL, docker run example,
SQLite backup/location docs)
- Remove stale data.db reference from Makefile clean target
The DB path remains configurable via DBURL environment variable.
Closes#44
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Changes
Appnamefrom"chat"to"neoirc"incmd/chatd/main.goDBURLfromfile:./data.db?_journal_mode=WALtofile:///var/lib/neoirc/state.db?_journal_mode=WALin bothinternal/config/config.goand theinternal/db/db.gofallback/var/lib/neoirc/directory in Dockerfile with proper ownership for thechatuser.envexample, docker run example, SQLite backup/location docs)data.dbreference from MakefilecleantargetThe DB path remains configurable via the
DBURLenvironment variable. No Go packages were renamed.Closes sneak/chat#44
✅ Review: PASS
Reviewed PR #45 (closes issue #44) — all requirements met.
Checklist
appname→"neoirc"(string constant only)cmd/chatd/main.goasAppnamevar. No Go package renames — all packages remainmain,config,db, etc.file:///var/lib/neoirc/state.db?_journal_mode=WALinternal/config/config.go(viper default) andinternal/db/db.go(fallback)viper.AutomaticEnv()+viper.GetString("DBURL")— env var override works as before/var/lib/neoirc/with proper permissionsmkdir -p /var/lib/neoirc && chown chat:chat /var/lib/neoircin final stage.envexample, Docker run command, binary run output, backup command, SQLite location — all updated*_test.gofiles changed.golangci.ymluntoucheddocker build .passesFiles Changed (6)
Dockerfile— creates/var/lib/neoirc/with chat:chat ownershipMakefile— removes staledata.dbfrom clean targetREADME.md— all documentation references updatedcmd/chatd/main.go—Appnameconstant →"neoirc"internal/config/config.go— default DBURL updatedinternal/db/db.go— fallback DBURL updatedClean, minimal, correct. Ready to merge.