Christian Dimas
Christian Dimas

Reputation: 117

Command run on bash but not from nginx conf exec

So I just build a media server using NGINX and NGINX-RTMP by arut, using this docker image here. The server works great, I can stream RTMP and view in HLS.

What I want to do now is taking a screenshot periodically, found this npm module that can do the thumbnail generation.

The strange things is, when I tried execute it from the nginx.conf, it won't work. I tried running the command manually from the docker bash and it runs smoothly.

This is my nginx.conf, you can download it here enter image description here

Upvotes: 1

Views: 1920

Answers (1)

Christian Dimas
Christian Dimas

Reputation: 117

Forgot to add env PATH inside the nginx.conf file. So that doesn't recognize the command.

Upvotes: 1

Related Questions