locked
RTMP over a web app with an Nginx listening for rtmp RRS feed

  • Question

  • Hello, we've recently deployed a web app for containers on an service plan. The container has an Nginx server on it listening on 8080 for http and 1935 for rtmp. We were able to reach the server over http but we couldn't reach it on rtmp protocol. Could anyone please confirm that there's restriction over rtmp and that we actually have to go through AMS (Azure media service). Is there any way other than AMS on Azure (ie: a VM)?

    Thank you :)

    Sunday, April 26, 2020 1:52 PM

All replies

  • Thanks for posting a great question. Firstly, Apologies for the delay. 

    A WebApp can be accessed via the internet is through the already-exposed HTTP (80) and HTTPS (443) TCP ports. These frequently asked questions would address these points: 

    Can I expose more than one port on my custom container image?  We don't support exposing more than one port.

    How do I know which container is internet accessible?

    • Only one container can be open for access
    • Only port 80 and 8080 is accessible (exposed ports)

    Here are the rules for determining which container is accessible - in the order of precedence:

    • Application setting WEBSITES_WEB_CONTAINER_NAME set to the container name
    • The first container to define port 80 or 8080
    • If neither of the above is true, the first container defined in the file will be accessible (exposed)

    Kindly checkout this document for more details on this topic.

    Additionally, you could use app setting WEBSITES_PORT to set the port for your own docker image while for blessed images use PORT environment variable as the listening port (other than 80).

    As a side note, App Service has several network features [TCP  & UDP], VNET, ASE, Service Endpoints, Private Endpoint (Preview), Hybrid Connection, based on the scenario criteria you can review here -App Service networking features. For this case, you could use AMS. 

    Tuesday, April 28, 2020 9:39 PM
  • Following-up on my response above to keep you posted.

    We're migrating from MSDN to Microsoft Q&A as our new forums and Azure WebApps has already made the move!  
    In future, you can ask and look for the discussion for Azure WebApps related questions on the respective forums: 
    https://docs.microsoft.com/answers/topics/azure-webapps.html 
    Note: Since this thread did not land in the right forum it would be moved to the appropriate forum.

    We are actively working to onboard remaining Azure services on Microsoft Q&A.
    We will make a public announcement once complete. 
    Want to Learn more about new platform, see Microsoft Q&A Getting Started: 
    https://docs.microsoft.com/answers/articles/388/microsoft-qa-frequently-asked-questions.html

    Tuesday, April 28, 2020 9:41 PM