{"id":28493050,"url":"https://github.com/hhftechnology/alpine-nginx-video-stream","last_synced_at":"2026-01-30T02:44:13.176Z","repository":{"id":267593005,"uuid":"901286236","full_name":"hhftechnology/alpine-nginx-video-stream","owner":"hhftechnology","description":"Nginx Video Streaming optimized running on Alpine Linux [docker] [amd64/armhf/aarch64]","archived":false,"fork":false,"pushed_at":"2025-02-20T17:38:36.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-08T05:40:34.572Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hhftechnology.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-10T11:34:23.000Z","updated_at":"2025-04-14T15:59:13.000Z","dependencies_parsed_at":"2025-02-20T18:29:32.320Z","dependency_job_id":"7ff8e1a8-8313-480c-9329-70a1dc397381","html_url":"https://github.com/hhftechnology/alpine-nginx-video-stream","commit_stats":null,"previous_names":["hhftechnology/alpine-nginx-video-stream"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hhftechnology/alpine-nginx-video-stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhftechnology%2Falpine-nginx-video-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhftechnology%2Falpine-nginx-video-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhftechnology%2Falpine-nginx-video-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhftechnology%2Falpine-nginx-video-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hhftechnology","download_url":"https://codeload.github.com/hhftechnology/alpine-nginx-video-stream/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhftechnology%2Falpine-nginx-video-stream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28897159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"online","status_checked_at":"2026-01-30T02:00:06.810Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-08T09:07:15.930Z","updated_at":"2026-01-30T02:44:13.169Z","avatar_url":"https://github.com/hhftechnology.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alpine NGINX Video Streaming Server\n\n[![Docker Automated build](https://img.shields.io/docker/automated/hhftechnology/alpine-nginx-video-stream.svg?style=for-the-badge\u0026logo=docker)](https://hub.docker.com/r/hhftechnology/alpine-nginx-video-stream/)\n[![Alpine Version](https://img.shields.io/badge/Alpine%20version-v3.19.0-green.svg?style=for-the-badge\u0026logo=alpine-linux)](https://alpinelinux.org/)\n[![NGINX Version](https://img.shields.io/badge/NGINX%20version-v1.26.1-green.svg?style=for-the-badge\u0026logo=nginx)](https://nginx.org/)\n\nA lightweight NGINX server optimized for video streaming, featuring VOD support, RTMP streaming, and thumbnail generation, all built on Alpine Linux for minimal footprint.\n\n## Technical Specifications\n\n- **Base Image**: Alpine Linux 3.19.0\n- **Web Server**: NGINX 1.26.1\n- **Image Size**: Optimized for minimal footprint\n- **Streaming Protocols**: HLS, DASH, RTMP\n- **Video Processing**: Thumbnail generation, VOD support\n\n## Supported Architectures\n\n- `amd64`/`x86_64`: 64-bit Intel/AMD\n- `arm64v8`/`aarch64`: 64-bit ARM (ARMv8)\n- `arm32v7`/`armhf`: 32-bit ARM (ARMv7)\n\n## Container Configuration\n\n### Volume Mount Points\n- `/var/media`: Video files and streaming content\n- `/var/log/nginx`: NGINX logs\n- `/etc/nginx/conf.d/`: Custom configuration files\n\n### Network Ports\n- `80`: HTTP port\n- `443`: HTTPS port (configured but disabled by default)\n- `1935`: RTMP port\n\n### Environment Variables\n\n#### Optional Variables\n- `WORKER_PROCESSES`: Number of worker processes (default: auto)\n- `WORKER_CONNECTIONS`: Maximum connections per worker (default: 1024)\n- `CLIENT_MAX_BODY_SIZE`: Maximum upload size (default: 10m)\n\n## Deployment Examples\n\n### Basic Docker Run\n```bash\ndocker run -d \\\n  --name nginx-streaming \\\n  -p 80:80 \\\n  -p 1935:1935 \\\n  -v media:/var/media \\\n  -v logs:/var/log/nginx \\\n  hhftechnology/alpine-nginx-video-stream:latest\n```\n\n### Docker Compose Configuration\n```yaml\nversion: '3.8'\n\nservices:\n  nginx-streaming:\n    image: hhftechnology/alpine-nginx-video-stream:latest\n    ports:\n      - \"80:80\"\n      - \"1935:1935\"\n    volumes:\n      - ./media:/var/media\n      - ./logs:/var/log/nginx\n      - ./custom.conf:/etc/nginx/conf.d/custom.conf:ro\n    environment:\n      - WORKER_PROCESSES=auto\n      - WORKER_CONNECTIONS=1024\n    healthcheck:\n      test: [\"CMD\", \"nginx\", \"-t\"]\n      interval: 30s\n      timeout: 10s\n      retries: 3\n    restart: unless-stopped\n\nvolumes:\n  media:\n    driver: local\n  logs:\n    driver: local\n```\n\n### Docker Swarm Deployment\n```bash\ndocker service create \\\n  --name nginx-streaming \\\n  --publish 80:80 \\\n  --publish 1935:1935 \\\n  --mount type=volume,source=media,target=/var/media \\\n  --mount type=volume,source=logs,target=/var/log/nginx \\\n  --replicas 1 \\\n  hhftechnology/alpine-nginx-video-stream:latest\n```\n\n## Streaming Configuration\n\n### RTMP Configuration\n```nginx\nrtmp {\n    server {\n        listen 1935;\n        chunk_size 4096;\n\n        application live {\n            live on;\n            record off;\n            hls on;\n            hls_path /var/media/hls;\n            dash on;\n            dash_path /var/media/dash;\n        }\n    }\n}\n```\n\n### HLS Configuration\n```nginx\nlocation /hls {\n    types {\n        application/vnd.apple.mpegurl m3u8;\n        video/mp2t ts;\n    }\n    root /var/media;\n    add_header Cache-Control no-cache;\n    add_header Access-Control-Allow-Origin *;\n}\n```\n\n## Streaming Examples\n\n### Push RTMP Stream\n```bash\nffmpeg -i input.mp4 -c:v copy -c:a aac -f flv rtmp://your-server:1935/live/stream\n```\n\n### Play Streams\n- HLS: `http://your-server/hls/stream.m3u8`\n- DASH: `http://your-server/dash/stream.mpd`\n- VOD: `http://your-server/vod/video.mp4`\n\n### Generate Thumbnail\n```\nhttp://your-server/thumb?video=example.mp4\u0026time=30\u0026width=320\u0026height=240\n```\n\n## Performance Tuning\n\n### Worker Configuration\n```nginx\nworker_processes auto;\nworker_rlimit_nofile 65535;\nevents {\n    worker_connections 1024;\n    use epoll;\n    multi_accept on;\n}\n```\n\n### Buffer Settings\n```nginx\nhttp {\n    client_body_buffer_size 10K;\n    client_header_buffer_size 1k;\n    client_max_body_size 8m;\n    large_client_header_buffers 2 1k;\n}\n```\n\n## Security Considerations\n\n1. Implement SSL/TLS for secure streaming\n2. Configure proper access controls\n3. Use secure RTMP keys\n4. Monitor streaming activity\n5. Regular security updates\n6. Implement rate limiting\n7. Configure proper file permissions\n\n## Monitoring \u0026 Logging\n\n- Access logs: `/var/log/nginx/access.log`\n- Error logs: `/var/log/nginx/error.log`\n- RTMP statistics: `http://your-server/stat`\n- Health check: `http://your-server/health`\n\n## Support \u0026 Contributing\n\n- Issues: [GitHub Issues](https://github.com/hhftechnology/alpine-nginx-video-stream/issues)\n- Forum: [HHF Technology Forum](https://forum.hhf.technology)\n- Contribute: Submit PRs to our [GitHub repository](https://github.com/hhftechnology/alpine-nginx-video-stream)\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhftechnology%2Falpine-nginx-video-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhhftechnology%2Falpine-nginx-video-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhftechnology%2Falpine-nginx-video-stream/lists"}