mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			866 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			866 B
		
	
	
	
		
			Text
		
	
	
	
	
	
# http-hooks or http-callbacks config for srs.
 | 
						|
# @see full.conf for detail config.
 | 
						|
 | 
						|
listen              1935;
 | 
						|
max_connections     1000;
 | 
						|
daemon              off;
 | 
						|
srs_log_tank        console;
 | 
						|
vhost __defaultVhost__ {
 | 
						|
    http_hooks {
 | 
						|
        enabled         on;
 | 
						|
        on_connect      http://127.0.0.1:8085/api/v1/clients http://localhost:8085/api/v1/clients;
 | 
						|
        on_close        http://127.0.0.1:8085/api/v1/clients http://localhost:8085/api/v1/clients;
 | 
						|
        on_publish      http://127.0.0.1:8085/api/v1/streams http://localhost:8085/api/v1/streams;
 | 
						|
        on_unpublish    http://127.0.0.1:8085/api/v1/streams http://localhost:8085/api/v1/streams;
 | 
						|
        on_play         http://127.0.0.1:8085/api/v1/sessions http://localhost:8085/api/v1/sessions;
 | 
						|
        on_stop         http://127.0.0.1:8085/api/v1/sessions http://localhost:8085/api/v1/sessions;
 | 
						|
    }
 | 
						|
}
 |