Require signing_key at startup, add default config

- Add config validation: signing_key required, minimum 32 characters
- Server now fails to start without valid signing_key (no more runtime errors)
- Add config.example.yml with default whitelist hosts
- Copy config to /etc/pixa/config.yml in Docker image
- Update entrypoint to use --config /etc/pixa/config.yml
- Add config.dev.yml for local Docker development
- Mount dev config in make devserver
This commit is contained in:
2026-01-08 15:48:37 -08:00
parent d2e2e319be
commit 02dedd433b
5 changed files with 49 additions and 4 deletions

View File

@@ -49,7 +49,9 @@ docker-test:
# Run local dev server in Docker
devserver: docker devserver-stop
docker run -d --name pixad-dev -p 8080:8080 pixad:latest
docker run -d --name pixad-dev -p 8080:8080 \
-v $(CURDIR)/config.dev.yml:/etc/pixa/config.yml:ro \
pixad:latest
@echo "pixad running at http://localhost:8080"
# Stop dev server