fix: use absolute path for dev DATA_DIR default, clarify env docs #46

Merged
sneak merged 2 commits from fix/45-readme-clarify-env-and-datadir into main 2026-03-17 12:48:53 +01:00

2 Commits

Author SHA1 Message Date
user
93968b6f10 fix: unify DATA_DIR default to /var/lib/webhooker for all environments
All checks were successful
check / check (push) Successful in 1m4s
Remove devDataDir() XDG-based logic. Both dev and prod now default
DATA_DIR to /var/lib/webhooker. Update Dockerfile and README to match.
2026-03-17 04:42:35 -07:00
clawbot
89af414037 fix: use absolute path for dev DATA_DIR default, clarify env docs
Change the dev-mode DATA_DIR default from the relative path ./data to
$XDG_DATA_HOME/webhooker (falling back to $HOME/.local/share/webhooker).
This ensures the application's data directory does not depend on the
working directory.

Add a table to the README that clearly documents what WEBHOOKER_ENVIRONMENT
actually controls: DATA_DIR default, CORS policy, and session cookie
Secure flag.

Add tests for devDataDir() and verify the dev default is always absolute.
2026-03-17 04:41:09 -07:00