nginx – setup rtmp server on laravel homestead

I want to add rtmp block below into homestead nginx configuration:

rtmp {
    server {
        # my configs
        }
    }
}

However in Homestead directory, when I open scripts/site-types/laravel.sh, I see this:

block="server {
    listen ${3:-80};
    listen ${4:-443} ssl http2;
    ...

    # more stuff here

    ...

}"

As you can see, there is only a server block that can get edited, and I cannot add the rtmp inside server block!
How can I add my rtmp block to this, so at the end it gets the functionality of below?


# RTMP configuration
rtmp {
    server {
        # my configs
    }
}


http {

        ##
        # Basic Settings
        ##
      
        ...

}