feat: public demo mode + base-path rewrites + security hardening#7
Open
hongphuc5497 wants to merge 15 commits into
Open
feat: public demo mode + base-path rewrites + security hardening#7hongphuc5497 wants to merge 15 commits into
hongphuc5497 wants to merge 15 commits into
Conversation
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Allow the local web UI to toggle TikTok info rendering and persist TikTok profile settings outside env-only configuration. Tested: npm test Tested: npm run typecheck Tested: npm run build Tested: npm audit --audit-level=moderate
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
v2.0.1 feat: web UI, LLM abstraction, TikTok settings
- Add PUBLIC_DEMO_MODE guard blocking POST /api/generate, POST /api/pipeline, PUT /api/settings - Add PUBLIC_BASE_PATH support with path normalization and stripPublicBasePath() - Add base-path-aware URL helpers in server.ts (publicPath) and app.js (appPath) - Add redacted settings in demo mode (redactUiSettings) - Convert Dockerfile to multi-stage with non-root appuser and HEALTHCHECK - Add SSRF protection: block private/internal IP ranges in web-fetcher.ts - Add .dockerignore to exclude sensitive and build-only files - Add fly.toml with NEWS_VIDEO_ORIGIN, PUBLIC_BASE_PATH, PUBLIC_DEMO_MODE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add public demo mode, base-path support, and security hardening for deployment behind
hongphuc5497.com/news-video-creating.Changes
Verification