Not sure how often this thread is watched anymore, but having a bit of an issue with a more advanced configuration and not really sure where else to turn for support.
I have a custom stream site set up that was working fine, using on_publish directive for stream authentication against a database of users and assigned stream keys. Today, I enabled SSL and everything else about the site is working correctly, outside the on_publish directive. Issue #1 is that it doesn't allow me to enter an https:// link (nginx -t fails), but it sort of works if I leave it as http. However, the returned stream key sent back to the rtmp-module is the entire GET url, and not just the stream key as expected.
Here is my server block to redirect to HTTPS:
Code:server { listen 80; server_name my.domain.name; return 301 https://$server_name$request_uri; }
With on_publish directive turned of, my.stream.key is returned correctly. With on_publish turned on, it returns:
Code:https://my.domain.name/authcode.php?app=live&flashver=FMLE/3.0%20(compatible%3B%20obs-studi&swfurl=rtmp://my.domain.name/live&tcurl=rtmp://my.domain.name/live&pageurl=&addr=xx.xx.xx.xx&clientid=15813&call=publish&name=my.stream.key&type=live
Any ideas how I can correct this? I'm a bit puzzled why it's returning the whole URL string instead of just the my.stream.key part. Is there some way I should edit the non-SSL server block to allow for this specific file?
How do you get the stream name?
I'm trying to get a stream name as a var, but I don't know how :(
I used this:
Code:
on_publish http://localhost/panel/redir/destino1.php;
destino1.php send me a rtmp as a HTTP Location 302 and works fine (only works IPs, not domains). But the last week, Facebook's IP don't works and I changed it like this:
Code:
push rtmp://live-api-a.facebook.com:80/rtmp playpath=http://localhost/panel/redir/facebookvar.php;
or
Code:
push rtmp://live-api-a.facebook.com:80/rtmp/$playpath
But I dont know how to do
Can someone help me?
Thanks