mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-15 16:31:07 +02:00
added more details about nginx build to the stat page
This commit is contained in:
parent
5ced4aea88
commit
613e7072c1
|
@ -3,6 +3,7 @@
|
|||
*/
|
||||
|
||||
|
||||
#include <nginx.h>
|
||||
#include <ngx_http.h>
|
||||
|
||||
#include "ngx_rtmp.h"
|
||||
|
@ -399,6 +400,10 @@ ngx_rtmp_stat_handler(ngx_http_request_t *r)
|
|||
|
||||
NGX_RTMP_STAT_L("<rtmp>\r\n");
|
||||
|
||||
NGX_RTMP_STAT_L("<version>" NGINX_VERSION "</version>\r\n");
|
||||
NGX_RTMP_STAT_L("<compiler>" NGX_COMPILER "</compiler>\r\n");
|
||||
NGX_RTMP_STAT_L("<built>" __DATE__ " " __TIME__ "</built>\r\n");
|
||||
|
||||
ngx_rtmp_stat_bw(r, lll, &ngx_rtmp_bw_in, &ngx_rtmp_bw_out);
|
||||
|
||||
cscf = cmcf->servers.elts;
|
||||
|
|
3
stat.xsl
3
stat.xsl
|
@ -11,7 +11,8 @@
|
|||
<body>
|
||||
<xsl:apply-templates select="rtmp"/>
|
||||
<hr/>
|
||||
Generated by <a href='https://github.com/arut/nginx-rtmp-module'>NGINX RTMP module</a>
|
||||
Generated by <a href='https://github.com/arut/nginx-rtmp-module'>NGINX RTMP module</a><br/>
|
||||
<a href="http://nginx.com">NGINX</a> <xsl:value-of select="/rtmp/version"/>, <xsl:value-of select="/rtmp/built"/>,  <xsl:value-of select="/rtmp/compiler"/>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
|
Loading…
Reference in a new issue