user nobody; worker_processes 1; events { worker_connections 1024; } rtmp { server { listen 1935; application livecam { live on; record off; on_play http://localhost/client-auth/; on_publish http://localhost/camera-auth/; exec_kill_signal int; exec_push /usr/bin/python /srv/http/projet-l3-info/lib/recorder.py rtmp://localhost/$app/$name $name; } } }