arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.22k stars 3.49k forks source link

on_publish basic http authication #188

Open ghost opened 11 years ago

ghost commented 11 years ago

Is it possible to use basic auth to secure a user publishing to the server?

I attempted to use on_publish to send to http://localhost/auth, then set basic auth using a htpasswd file for that location. I can login via a web browser ok.

I am using Wirecast and can publish fine when not using auth, however when I attempt the on_publish above, wirecast is not sending any passwords through. I believe it uses adobe method of authentication??

http{ server { location /auth { root /webroot; auth_basic "Restricted"; auth_basic_user_file /etc/nginx/auth/.htpasswd; index index.html; } } }

rtmp { server {

            listen 1935;
            chunk_size 4000;
            notify_method get;

            application mytv {                    
                    live on;
                    on_publish http://localhost/auth;
            }            
    }

}

Cheers,

A

arut commented 11 years ago

I think Wirecast uses Adobe authentication which is not supported by nginx-rtmp.

ghost commented 11 years ago

Thanks for the info!

Alun.

----- Original Message -----

From: "Roman Arutyunyan" notifications@github.com To: "arut/nginx-rtmp-module" nginx-rtmp-module@noreply.github.com Cc: "paradoxni" ajames@tibus.com Sent: Tuesday, 14 May, 2013 5:21:57 PM Subject: Re: [nginx-rtmp-module] on_publish basic http authication (#188)

I think Wirecast uses Adobe authentication which is not supported by nginx-rtmp. — Reply to this email directly or view it on GitHub .