This repository was archived by the owner on Apr 10, 2026. It is now read-only.
Docker & CSP Fixes for nginx-unprivileged#27
Open
benrhughes wants to merge 9 commits intodynamicskillset:mainfrom
Open
Docker & CSP Fixes for nginx-unprivileged#27benrhughes wants to merge 9 commits intodynamicskillset:mainfrom
benrhughes wants to merge 9 commits intodynamicskillset:mainfrom
Conversation
Docker config and github CI/CD
Fix pipeline warnings
Only build/deploy docker when a release is published manually
Feature/docker
more PR feedback
✅ Deploy Preview for stream-rss ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Further testing of changes made as a result of PR feedback has found some issues.
This PR addresses nginx-unprivileged compatibility issues and updates the Content Security Policy to support self-hosted RSS services.
Changes
1. nginx PID File Fix
pid /tmp/nginx.pid;tonginx.confnginxinc/nginx-unprivilegedruns as non-root user and can't write to/run/nginx.pid2. Health Check IPv6 Fix
http://localhost:8080/tohttp://127.0.0.1:8080/localhostresolves to IPv6::1inside container, but nginx listens only on IPv43. Removed Redundant Server-Level Headers
add_headerblock innginx.conf4. Allow HTTP Connections (
connect-src)connect-src 'self' https:connect-src 'self' https: http:5. Allow HTTP Images (
img-src)img-src 'self' data: https:img-src 'self' data: https: http:6. Re-enable Inline Styles (
style-src)style-src 'self'style-src 'self' 'unsafe-inline'<style>tags andstyle=""attributes for formatting7. Re-enable Inline Scripts (
script-src)script-src 'self'script-src 'self' 'unsafe-inline'Technical Details
The app renders RSS article content using
dangerouslySetInnerHTMLinReadingView.tsx. Real-world RSS feeds contain inline styles that are essential for proper article formatting. Without'unsafe-inline', articles appear unstyled and difficult to read.Security Consideration
Content undergoes HTML sanitization before rendering, but inline styles can still be abused. This is a necessary trade-off for RSS reader functionality with diverse feed sources.
Validation
This enables the Docker deployment to work with
nginxinc/nginx-unprivilegedwhile supporting self-hosted RSS services.