Skip to content

Rework app configuration and image serving#4

Open
Finesssee wants to merge 1 commit into
dephizee:masterfrom
Finesssee:copilot-rework-app-hardening
Open

Rework app configuration and image serving#4
Finesssee wants to merge 1 commit into
dephizee:masterfrom
Finesssee:copilot-rework-app-hardening

Conversation

@Finesssee
Copy link
Copy Markdown

Closes #1

Summary

  • make server port and MySQL connection settings configurable with environment variables
  • harden /public/images/* serving with path traversal protection, file existence checks, and image content types
  • validate required form/upload fields before writing records or files
  • add collision-resistant upload filenames and a focused test suite for static image path handling
  • document local development commands and runtime configuration

Verification

  • npm test
  • node --check server.js && node --check lib/fileserver.js && node --check lib/http.js && node --check lib/static-images.js
  • git diff --check

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Finesssee Finesssee mentioned this pull request May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rework my old app

1 participant