winshining / nginx-http-flv-module

A media streaming server based on nginx-rtmp-module. In addtion to the features nginx-rtmp-module provides, HTTP-FLV, GOP cache, VHosts (one IP for multi domain names) and JSON style statistics are supported now.
BSD 2-Clause "Simplified" License
2.75k stars 571 forks source link

Fixes issue in Nginx HLS Encryption Keys #225

Closed deamos closed 1 year ago

deamos commented 2 years ago

This is a fix for the issue identified in the PR #1158 for arut/nginx-rtmp-module regarding HLS Encryption causing a hard crash with the below error which exists in nginx-http-flv-module.

nginx: [emerg] the same path name "/data/hlskeys" used in /usr/local/nginx/conf/nginx.conf:178 and in /usr/local/nginx/conf/nginx.conf:178

Commenting of line 2350 in hls/ngx_rtmp_hls_module.c corrects the problem and allows Nginx to start properly and use HLS encryption