mirror of
				https://github.com/langhuihui/monibuca.git
				synced 2025-10-31 07:36:23 +08:00 
			
		
		
		
	Compare commits
	
		
			7 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 0faada1a13 | ||
|   | 3ffa4ab8b6 | ||
|   | ac742d07cf | ||
|   | 6df2a3b842 | ||
|   | c38bd36ecc | ||
|   | a769f1cbf4 | ||
|   | 8ec0515f60 | 
							
								
								
									
										10
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
									
									
									
									
								
							| @@ -67,8 +67,16 @@ to submit your own plugin | ||||
| |hls||✔|✔| | ||||
| |ws-flv|||✔| | ||||
| |webrtc|✔||✔ | ||||
| # Documentation | ||||
|  | ||||
| # Build & Test with docker | ||||
|  | ||||
| > development and testing only: IP and udp ports need to be exposed carefully in production. | ||||
| ```shell | ||||
| docker build . -f dockerfile -t m7s:3.0 | ||||
| docker run --name m7s -p 1935:1935 -p 8081:8081 -p 8082:8082 -p 554:554 m7s:3.0 | ||||
| ``` | ||||
|  | ||||
| # Documentation | ||||
|  | ||||
| 中文文档: | ||||
| [http://docs.monibuca.com](http://docs.monibuca.com). | ||||
|   | ||||
| @@ -47,6 +47,14 @@ bash <(curl -s -S -L https://monibuca.com/demo.sh) | ||||
|   | ||||
| 功能强大的仪表盘可以直观的看到服务器运行的状态、消耗的资源、以及其他统计信息。用户可以利用控制台对服务器进行配置和控制。 | ||||
|  | ||||
| # 在 Docker 中编译和测试 | ||||
|  | ||||
| > 生产服务需要暴露IP和大量端口,建议容器仅用于开发和测试 | ||||
| ```shell | ||||
| docker build . -f dockerfile -t m7s:3.0 | ||||
| docker run --name m7s -p 1935:1935 -p 8081:8081 -p 8082:8082 -p 554:554 m7s:3.0 | ||||
| ``` | ||||
|  | ||||
| # 交流微信群 | ||||
|  | ||||
| 进入网站首页上进行扫码 | ||||
|   | ||||
| @@ -13,7 +13,7 @@ SampleRate = 1 | ||||
| [RTMP] | ||||
| ListenAddr = ":1935" | ||||
| [GateWay] | ||||
| ListenAddr = ":8080" | ||||
| ListenAddr = ":8081" | ||||
| ListenAddrTLS = ":8082" | ||||
| CertFile = "server.pem" | ||||
| KeyFile = "server.key" | ||||
| @@ -30,11 +30,7 @@ Size = 0 | ||||
| Days = 1 | ||||
| # 按照go layout格式化,默认按照小时 | ||||
| Formatter = "2006-01-02T15" | ||||
| [Cluster] | ||||
| # 监听端口代表该服务器为源服务器 | ||||
| ListenAddr = ":2019" | ||||
| # 源服务器地址,用于向源服务器进行推或拉流 | ||||
| #OriginServer = "" | ||||
| # [FFMPEG] | ||||
| [HLS] | ||||
| # 是否开启写磁盘,开启后侦测到发布流就会开始写TS文件 | ||||
| EnableWrite = false | ||||
|   | ||||
							
								
								
									
										46
									
								
								dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								dockerfile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,46 @@ | ||||
| FROM golang:1.17.0-alpine3.14 as builder | ||||
|  | ||||
| LABEL maintainer="yangshuhai@pdnews.cn" | ||||
|  | ||||
| WORKDIR /app | ||||
|  | ||||
| # 先装好基础依赖,减少在代码变化时的重复构建时间 | ||||
| RUN echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.14/main" > /etc/apk/repositories | ||||
| RUN echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.14/community" >> /etc/apk/repositories | ||||
| RUN apk add --no-cache --update autoconf automake make gcc g++ | ||||
| RUN go env -w GO111MODULE=on | ||||
| RUN go env -w GOPROXY=https://goproxy.cn,direct | ||||
| RUN go get -d github.com/Monibuca/engine/v3@v3.4.7 | ||||
| RUN go get -d github.com/Monibuca/plugin-gateway/v3@v3.0.10 | ||||
| RUN go get -d github.com/Monibuca/plugin-gb28181/v3@v3.0.2 | ||||
| RUN go get -d github.com/Monibuca/plugin-hdl/v3@v3.0.5 | ||||
| RUN go get -d github.com/Monibuca/plugin-hls/v3@v3.0.6 | ||||
| RUN go get -d github.com/Monibuca/plugin-jessica/v3@v3.0.0 | ||||
| RUN go get -d github.com/Monibuca/plugin-logrotate/v3@v3.0.0 | ||||
| RUN go get -d github.com/Monibuca/plugin-record/v3@v3.0.0 | ||||
| RUN go get -d github.com/Monibuca/plugin-rtmp/v3@v3.0.1 | ||||
| RUN go get -d github.com/Monibuca/plugin-rtsp/v3@v3.0.7 | ||||
| RUN go get -d github.com/Monibuca/plugin-summary@v1.0.0 | ||||
| RUN go get -d github.com/Monibuca/plugin-ts/v3@v3.0.1 | ||||
| RUN go get -d github.com/Monibuca/plugin-webrtc/v3@v3.0.3 | ||||
|  | ||||
| # 再复制代码进行编译,可节省大量构建时间 | ||||
| COPY . . | ||||
| RUN go mod tidy | ||||
| RUN GOOS=linux go build -o m7s | ||||
|  | ||||
| # 构建完成则将成品复制到新的镜像中,减小镜像大小,可以考虑添加 upx 进一步减少空间 | ||||
| FROM alpine:3.14 | ||||
|  | ||||
| WORKDIR /app | ||||
| COPY --from=builder /app/m7s /app/m7s | ||||
| COPY config.toml /app/config.toml | ||||
| RUN /app/m7s --help | ||||
|  | ||||
| EXPOSE 554 | ||||
| EXPOSE 1935 | ||||
| EXPOSE 5060 | ||||
| EXPOSE 8081 | ||||
| EXPOSE 8082 | ||||
|  | ||||
| CMD ["/app/m7s", "-c", "/app/config.toml"] | ||||
							
								
								
									
										28
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								go.mod
									
									
									
									
									
								
							| @@ -1,23 +1,25 @@ | ||||
| module github.com/langhuihui/monibuca | ||||
| module github.com/langhuihui/monibuca/v3 | ||||
|  | ||||
| go 1.16 | ||||
|  | ||||
| require ( | ||||
| 	github.com/Monibuca/engine/v3 v3.4.3 | ||||
| 	github.com/Monibuca/plugin-gateway/v3 v3.0.7 | ||||
| 	github.com/Monibuca/plugin-gb28181/v3 v3.0.0 | ||||
| 	github.com/Monibuca/engine/v3 v3.5.1 | ||||
| 	github.com/Monibuca/plugin-gateway/v3 v3.0.11 | ||||
| 	github.com/Monibuca/plugin-gb28181/v3 v3.0.6 | ||||
| 	github.com/Monibuca/plugin-hdl/v3 v3.0.5 | ||||
| 	github.com/Monibuca/plugin-hls/v3 v3.0.3 | ||||
| 	github.com/Monibuca/plugin-jessica/v3 v3.0.0-20210807235919-48ac5fbec646 | ||||
| 	github.com/Monibuca/plugin-logrotate/v3 v3.0.0-20210710104346-3db68431dcab | ||||
| 	github.com/Monibuca/plugin-record/v3 v3.0.0-20210813073316-79dce1e0dc70 | ||||
| 	github.com/Monibuca/plugin-rtmp/v3 v3.0.0 | ||||
| 	github.com/Monibuca/plugin-rtsp/v3 v3.0.6 | ||||
| 	github.com/Monibuca/plugin-summary v0.0.0-20210821070131-2261e0efb7b9 | ||||
| 	github.com/Monibuca/plugin-ts/v3 v3.0.0 | ||||
| 	github.com/Monibuca/plugin-webrtc/v3 v3.0.0 | ||||
| 	github.com/Monibuca/plugin-hls/v3 v3.0.6 | ||||
| 	github.com/Monibuca/plugin-jessica/v3 v3.0.0 | ||||
| 	github.com/Monibuca/plugin-logrotate/v3 v3.0.0 | ||||
| 	github.com/Monibuca/plugin-record/v3 v3.0.0 | ||||
| 	github.com/Monibuca/plugin-rtmp/v3 v3.0.1 | ||||
| 	github.com/Monibuca/plugin-rtsp/v3 v3.0.8 | ||||
| 	github.com/Monibuca/plugin-summary v1.0.0 | ||||
| 	github.com/Monibuca/plugin-ts/v3 v3.0.1 | ||||
| 	github.com/Monibuca/plugin-webrtc/v3 v3.0.3 | ||||
| ) | ||||
|  | ||||
| // replace github.com/Monibuca/plugin-ffmpeg => ../plugin-ffmpeg | ||||
| // replace github.com/Monibuca/plugin-webrtc/v3 => ../plugin-webrtc | ||||
| // replace github.com/Monibuca/plugin-gateway/v3 => ../plugin-gateway | ||||
|  | ||||
| // replace github.com/Monibuca/plugin-rtsp/v3 => ../plugin-rtsp | ||||
|   | ||||
							
								
								
									
										74
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										74
									
								
								go.sum
									
									
									
									
									
								
							| @@ -2,51 +2,47 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03 | ||||
| github.com/BurntSushi/toml v0.4.1 h1:GaI7EiDXDRfa8VshkTj7Fym7ha+y8/XxIgD2okUIjLw= | ||||
| github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= | ||||
| github.com/Monibuca/engine/v3 v3.1.0/go.mod h1:yz6cssED2VlYu+g/LrxseBB9pcvsLM/o2QXa4gVY650= | ||||
| github.com/Monibuca/engine/v3 v3.1.1/go.mod h1:yz6cssED2VlYu+g/LrxseBB9pcvsLM/o2QXa4gVY650= | ||||
| github.com/Monibuca/engine/v3 v3.3.0/go.mod h1:odyqD/VTQDN4qgzajsgn7kW7MWDIzTHt+j+BcI8i+4g= | ||||
| github.com/Monibuca/engine/v3 v3.3.9/go.mod h1:odyqD/VTQDN4qgzajsgn7kW7MWDIzTHt+j+BcI8i+4g= | ||||
| github.com/Monibuca/engine/v3 v3.3.11/go.mod h1:LowMZ/iw4t6tfTZkSYZHIA0Z1HE8b7xfTDLO4WhX3Hg= | ||||
| github.com/Monibuca/engine/v3 v3.3.16/go.mod h1:rgAUey5ziRhlh6WugWyA5fYKyGOvcwhtTMDk4sukE7E= | ||||
| github.com/Monibuca/engine/v3 v3.4.1/go.mod h1:rgAUey5ziRhlh6WugWyA5fYKyGOvcwhtTMDk4sukE7E= | ||||
| github.com/Monibuca/engine/v3 v3.4.3 h1:xpAJx2whxy+T8lyfFaNmOVnN+/fxPWxcIP6uoH8OJVc= | ||||
| github.com/Monibuca/engine/v3 v3.4.3/go.mod h1:Dik9pFxU9TFI5vj8Sv5QXZM+ooCs2fm9P7Uhe4yYNkQ= | ||||
| github.com/Monibuca/plugin-gateway/v3 v3.0.7 h1:2/juy2G+ZmkYeB7XXP7lCPTnzPvHvE0rhkwowXcA9z4= | ||||
| github.com/Monibuca/plugin-gateway/v3 v3.0.7/go.mod h1:GPQDIll0o9+txwJ+ZwDcQTcR8rTE2SFZ/UbgmDKZTdg= | ||||
| github.com/Monibuca/plugin-gb28181/v3 v3.0.0 h1:o9a3Dnud7eoHwDF1cmwX6ipr4u4VW/1/9X0yzi1jQ9Q= | ||||
| github.com/Monibuca/plugin-gb28181/v3 v3.0.0/go.mod h1:foflXhJgzpYvMu3mlwQ/8JQ4ieo6RPSiubZ9t12FIbA= | ||||
| github.com/Monibuca/engine/v3 v3.4.5/go.mod h1:Dik9pFxU9TFI5vj8Sv5QXZM+ooCs2fm9P7Uhe4yYNkQ= | ||||
| github.com/Monibuca/engine/v3 v3.5.0/go.mod h1:yNiVKeHxgv+Ez+f2RHXMkXoa5Oxv+G7Ch+MJdHi7ing= | ||||
| github.com/Monibuca/engine/v3 v3.5.1 h1:3AX+FwxerMw3JuyGXIOd/1dYCjA3IzWLKH/zq/GWe20= | ||||
| github.com/Monibuca/engine/v3 v3.5.1/go.mod h1:yNiVKeHxgv+Ez+f2RHXMkXoa5Oxv+G7Ch+MJdHi7ing= | ||||
| github.com/Monibuca/plugin-gateway/v3 v3.0.11 h1:wkTqaukhzlN55gq3PAlGB+9azYLhxGTxknoCK8aWvt4= | ||||
| github.com/Monibuca/plugin-gateway/v3 v3.0.11/go.mod h1:Pw5seYubBswGoF4knryLbLp6qrkYPwg3a7ZupgOir/4= | ||||
| github.com/Monibuca/plugin-gb28181/v3 v3.0.6 h1:AWvjjbs0xNOhm2u+/6DVFJY+6zbBjSrPuy5UD3X8RkQ= | ||||
| github.com/Monibuca/plugin-gb28181/v3 v3.0.6/go.mod h1:EIu6vD1irPweLcA+1dC4k05wVe6ygYn6ErMfEx+UYPo= | ||||
| github.com/Monibuca/plugin-hdl/v3 v3.0.5 h1:D7DO1a4wdNIQw5grcrSuIu2TMBTk7hTlNJjxEsMbvSE= | ||||
| github.com/Monibuca/plugin-hdl/v3 v3.0.5/go.mod h1:ImBolaupuPvXGoWD5hOUUMvSPPuzrg2lzVWqhcXmdVA= | ||||
| github.com/Monibuca/plugin-hls/v3 v3.0.3 h1:IWLY9TiHkbFPVuMIKkljZfIch1RUuRSAXXKnIdYom84= | ||||
| github.com/Monibuca/plugin-hls/v3 v3.0.3/go.mod h1:HRfFcEfpBZYrbtj4j46wLhYuAcZdTukzpw87CLf8FcE= | ||||
| github.com/Monibuca/plugin-jessica/v3 v3.0.0-20210807235919-48ac5fbec646 h1:wfge6Eakjoh+j6kRb8JlTazLWImWVbRqAVB/FlB4nHk= | ||||
| github.com/Monibuca/plugin-jessica/v3 v3.0.0-20210807235919-48ac5fbec646/go.mod h1:ycVTGh96OWFjzFfK7ErMcxTgohNZwagHRDab0GkTIFU= | ||||
| github.com/Monibuca/plugin-logrotate/v3 v3.0.0-20210710104346-3db68431dcab h1:s/yYXSOwXQxSdrPALlq8fHcdhtWnsM0RBPwAo2d+FOU= | ||||
| github.com/Monibuca/plugin-logrotate/v3 v3.0.0-20210710104346-3db68431dcab/go.mod h1:VK6gZDgLIIERvVTbshN+bd/966SBW/u1plVQATXH0q0= | ||||
| github.com/Monibuca/plugin-record/v3 v3.0.0-20210813073316-79dce1e0dc70 h1:NO3NLdkQfcQ754yaroFfGCeIFBEGp/IxTl/Nz7X+0wI= | ||||
| github.com/Monibuca/plugin-record/v3 v3.0.0-20210813073316-79dce1e0dc70/go.mod h1:CusWmmgSjE1rRaGO9O06LOvXSpKilfiFgRsUlYHvFq0= | ||||
| github.com/Monibuca/plugin-rtmp/v3 v3.0.0 h1:sXO6ZQDuQFz+8AMlTkltThmLI0OOA2DEIeyeIWFFT3E= | ||||
| github.com/Monibuca/plugin-rtmp/v3 v3.0.0/go.mod h1:sDXF75JHXvZY4NjEe2raBmEF6RDvvOre9s1GKZvojjI= | ||||
| github.com/Monibuca/plugin-rtsp/v3 v3.0.6 h1:gk8mozljwjv/gOWo7h+Q1oy4FiLn3GBm4Mz7awViNjE= | ||||
| github.com/Monibuca/plugin-rtsp/v3 v3.0.6/go.mod h1:byXGE5BxFv0RpcoOjcQRt7B7mZvrgNuVpRn0kJtFIkU= | ||||
| github.com/Monibuca/plugin-summary v0.0.0-20210821070131-2261e0efb7b9 h1:8JVquYo8PUQtc75vFa8ovPvsXSmU0N2twfD+8hOoZeM= | ||||
| github.com/Monibuca/plugin-summary v0.0.0-20210821070131-2261e0efb7b9/go.mod h1:1kiDXMF82y299q2+KKEeaKRpQFvVkiGAIGg8OhYk9Qk= | ||||
| github.com/Monibuca/plugin-ts/v3 v3.0.0 h1:W6A5onbEDKAxuewl46PJPippV5E3fu7UV6rK+Hq/q5s= | ||||
| github.com/Monibuca/plugin-hls/v3 v3.0.6 h1:WfM9BeTnezQJK6WmC40A3yyxXXGFqJNMePvcjKtYa+M= | ||||
| github.com/Monibuca/plugin-hls/v3 v3.0.6/go.mod h1:HRfFcEfpBZYrbtj4j46wLhYuAcZdTukzpw87CLf8FcE= | ||||
| github.com/Monibuca/plugin-jessica/v3 v3.0.0 h1:ArSiHOHfcekBfUOJMFZ0IJSbP/B1TnvcC5gegTpcbDw= | ||||
| github.com/Monibuca/plugin-jessica/v3 v3.0.0/go.mod h1:pf2lC2r3ZC1DYffW12zDPJH1sX59suI9JNXXuokZdbE= | ||||
| github.com/Monibuca/plugin-logrotate/v3 v3.0.0 h1:lWLgfKx2tVmXomzmZNACDzl/8HCHAkxyAmxT+ReLa9g= | ||||
| github.com/Monibuca/plugin-logrotate/v3 v3.0.0/go.mod h1:OltyTXYmIGyUaZap+/qyEm87HVmn14PzEUCtAmNAUUg= | ||||
| github.com/Monibuca/plugin-record/v3 v3.0.0 h1:449s+La2O5in0jaIdA94iK3QIS1s+G73VQXeLUiciN0= | ||||
| github.com/Monibuca/plugin-record/v3 v3.0.0/go.mod h1:71pviyOflKsNq+ijPKOgcsKqZkvZ91PzJxLJWPDzYe0= | ||||
| github.com/Monibuca/plugin-rtmp/v3 v3.0.1 h1:ZnklWGgblcD2a+siTgK84VLm6rJ445VzFuZia1Gea4k= | ||||
| github.com/Monibuca/plugin-rtmp/v3 v3.0.1/go.mod h1:subd/7X5wcPbt5PDc0tbJ9RqNkvnrLJGj05RsYw25A8= | ||||
| github.com/Monibuca/plugin-rtsp/v3 v3.0.8 h1:wKGcTxwyZdG63AR5ZW9M5vYfUvMHY/iwmsq56XibEfQ= | ||||
| github.com/Monibuca/plugin-rtsp/v3 v3.0.8/go.mod h1:byXGE5BxFv0RpcoOjcQRt7B7mZvrgNuVpRn0kJtFIkU= | ||||
| github.com/Monibuca/plugin-summary v1.0.0 h1:tWL7KWw5mcep2jAhG3Gzd1DCiLSyCl3u3nmJtYkqGFA= | ||||
| github.com/Monibuca/plugin-summary v1.0.0/go.mod h1:rpSCVcPrecGlgT+aoCYsA6MawsE6ELT2mMGYYlSfTWo= | ||||
| github.com/Monibuca/plugin-ts/v3 v3.0.0/go.mod h1:S+sUqUbZTiRws/GHoxcVVQdhOcuUQUxoAGDeQOAgKw0= | ||||
| github.com/Monibuca/plugin-webrtc/v3 v3.0.0 h1:L9ISc3atJ99OcfPwPKm1mA6HxJx7MPxyagRaQ9V5v0g= | ||||
| github.com/Monibuca/plugin-webrtc/v3 v3.0.0/go.mod h1:IVauqiKgEXl/Wc2I7/GcUvO/9YYndwQwYyLP8EzYGR8= | ||||
| github.com/Monibuca/plugin-ts/v3 v3.0.1 h1:WPjDsv7s1aqDcpBzPJrC9CvaHZvnDf92qEQaBx6oR3c= | ||||
| github.com/Monibuca/plugin-ts/v3 v3.0.1/go.mod h1:Xndravs2PFGXHr4ZtAZ+azPBjDBBTB8ZanP8zrvu11o= | ||||
| github.com/Monibuca/plugin-webrtc/v3 v3.0.3 h1:MWIQEZwIlxlruEU5rxiH7KhhKyCp3fZf0qrxF2gFd7Y= | ||||
| github.com/Monibuca/plugin-webrtc/v3 v3.0.3/go.mod h1:eH8O1nvkxpHJVmasyXK1r/oOsAuXdwQ8TvkyVLR5Crg= | ||||
| github.com/Monibuca/utils/v3 v3.0.0/go.mod h1:RpNS95gapWs6gimwh8Xn2x72FN5tO7Powabj7dTFyvE= | ||||
| github.com/Monibuca/utils/v3 v3.0.1/go.mod h1:RpNS95gapWs6gimwh8Xn2x72FN5tO7Powabj7dTFyvE= | ||||
| github.com/Monibuca/utils/v3 v3.0.2/go.mod h1:RpNS95gapWs6gimwh8Xn2x72FN5tO7Powabj7dTFyvE= | ||||
| github.com/Monibuca/utils/v3 v3.0.3/go.mod h1:RpNS95gapWs6gimwh8Xn2x72FN5tO7Powabj7dTFyvE= | ||||
| github.com/Monibuca/utils/v3 v3.0.4/go.mod h1:RpNS95gapWs6gimwh8Xn2x72FN5tO7Powabj7dTFyvE= | ||||
| github.com/Monibuca/utils/v3 v3.0.5 h1:w14x0HkWTbF4MmHbINLlOwe4VJNoSOeaQChMk5E/4es= | ||||
| github.com/Monibuca/utils/v3 v3.0.5/go.mod h1:RpNS95gapWs6gimwh8Xn2x72FN5tO7Powabj7dTFyvE= | ||||
| github.com/StackExchange/wmi v1.2.0 h1:noJEYkMQVlFCEAc+2ma5YyRhlfjcWfZqk5sBRYozdyM= | ||||
| github.com/StackExchange/wmi v1.2.0/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= | ||||
| github.com/StackExchange/wmi v1.2.1 h1:VIkavFPXSjcnS+O8yTq7NI32k0R5Aj+v39y29VYDOSA= | ||||
| github.com/StackExchange/wmi v1.2.1/go.mod h1:rcmrprowKIVzvc+NUiLncP2uuArMWLCbu9SBzvHz7e8= | ||||
| github.com/agiledragon/gomonkey/v2 v2.2.0 h1:QJWqpdEhGV/JJy70sZ/LDnhbSlMrqHAWHcNOjz1kyuI= | ||||
| github.com/agiledragon/gomonkey/v2 v2.2.0/go.mod h1:ap1AmDzcVOAz1YpeJ3TCzIgstoaWLA6jbbgxfB4w2iY= | ||||
| github.com/aler9/gortsplib v0.0.0-20211212220644-6f374e396529 h1:j2tfs+eUubyZnuwmYWzK+IS681IixfUyD8bivz4sqAw= | ||||
| github.com/aler9/gortsplib v0.0.0-20211212220644-6f374e396529/go.mod h1:fyQrQyHo8QvdR/h357tkv1g36VesZlzEPsdAu2VrHHc= | ||||
| github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef h1:2JGTg6JapxP9/R33ZaagQtAM4EkkSYnIAlOG5EI8gkM= | ||||
| github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef/go.mod h1:JS7hed4L1fj0hXcyEejnW57/7LCetXggd+vwrRnYeII= | ||||
| github.com/asticode/go-astikit v0.20.0/go.mod h1:h4ly7idim1tNhaVkdVBeXQZEE3L0xblP7fCWbgwipF0= | ||||
| github.com/asticode/go-astits v1.10.0/go.mod h1:DkOWmBNQpnr9mv24KfZjq4JawCFX1FCqjLVGvO0DygQ= | ||||
| github.com/cnotch/apirouter v0.0.0-20200731232942-89e243a791f3/go.mod h1:5deJPLON/x/s2dLOQfuKS0lenhOIT4xX0pvtN/OEIuY= | ||||
| @@ -187,10 +183,10 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 | ||||
| github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | ||||
| github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= | ||||
| github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | ||||
| github.com/tklauser/go-sysconf v0.3.6 h1:oc1sJWvKkmvIxhDHeKWvZS4f6AW+YcoguSfRF2/Hmo4= | ||||
| github.com/tklauser/go-sysconf v0.3.6/go.mod h1:MkWzOF4RMCshBAMXuhXJs64Rte09mITnppBXY/rYEFI= | ||||
| github.com/tklauser/numcpus v0.2.2 h1:oyhllyrScuYI6g+h/zUvNXNp1wy7x8qQy3t/piefldA= | ||||
| github.com/tklauser/numcpus v0.2.2/go.mod h1:x3qojaO3uyYt0i56EW/VUYs7uBvdl2fkfZFu0T9wgjM= | ||||
| github.com/tklauser/go-sysconf v0.3.9 h1:JeUVdAOWhhxVcU6Eqr/ATFHgXk/mmiItdKeJPev3vTo= | ||||
| github.com/tklauser/go-sysconf v0.3.9/go.mod h1:11DU/5sG7UexIrp/O6g35hrWzu0JxlwQ3LSFUzyeuhs= | ||||
| github.com/tklauser/numcpus v0.3.0 h1:ILuRUQBtssgnxw0XXIjKUC56fgnOrFoQQ/4+DeU2biQ= | ||||
| github.com/tklauser/numcpus v0.3.0/go.mod h1:yFGUr7TUHQRAhyqBcEg0Ge34zDBAsIvJJcyE6boqnA8= | ||||
| github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= | ||||
| github.com/zhangpeihao/goamf v0.0.0-20140409082417-3ff2c19514a8 h1:r1JUI0wuHlgRb8jNd3zPBBkjUdrjpVKr8SdJWc8ntg8= | ||||
| github.com/zhangpeihao/goamf v0.0.0-20140409082417-3ff2c19514a8/go.mod h1:RZd/IqzNpFANwOB9rVmsnAYpo/6KesK4PqrN1a5cRgg= | ||||
| @@ -240,11 +236,11 @@ golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7w | ||||
| golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20201207223542-d4d67f95c62d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20210316164454-77fc1eacc6aa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.0.0-20210816074244-15123e1e1f71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359 h1:2B5p2L5IfGiD7+b9BOoRMC6DgObAVZV+Fsp050NqXik= | ||||
| golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= | ||||
|   | ||||
							
								
								
									
										2
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.go
									
									
									
									
									
								
							| @@ -31,12 +31,12 @@ func main() { | ||||
| 	addr := flag.String("c", "config.toml", "config file") | ||||
| 	flag.Parse() | ||||
| 	ctx, cancel := context.WithCancel(context.Background()) | ||||
| 	go waiter(cancel) | ||||
| 	if _, err := os.Stat(*addr); err == nil { | ||||
| 		Run(ctx, *addr) | ||||
| 	} else { | ||||
| 		Run(ctx, filepath.Join(filepath.Dir(os.Args[0]), *addr)) | ||||
| 	} | ||||
| 	waiter(cancel) | ||||
| } | ||||
|  | ||||
| func waiter(cancel context.CancelFunc) { | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								monibuca.syso
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								monibuca.syso
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user