marksverdhei commited on
Commit
38f54be
·
verified ·
1 Parent(s): f3c740f

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. Dockerfile +18 -0
  2. README.md +5 -7
  3. go2rtc.yaml +10 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM debian:bookworm-slim
2
+
3
+ RUN apt-get update && \
4
+ apt-get install -y --no-install-recommends wget ca-certificates && \
5
+ rm -rf /var/lib/apt/lists/*
6
+
7
+ RUN wget -O /usr/local/bin/go2rtc \
8
+ https://github.com/AlexxIT/go2rtc/releases/latest/download/go2rtc_linux_amd64 && \
9
+ chmod +x /usr/local/bin/go2rtc
10
+
11
+ RUN useradd -m appuser
12
+ USER appuser
13
+
14
+ COPY --chown=appuser:appuser go2rtc.yaml /home/appuser/go2rtc.yaml
15
+
16
+ EXPOSE 7860
17
+
18
+ CMD ["go2rtc", "-config", "/home/appuser/go2rtc.yaml"]
README.md CHANGED
@@ -1,10 +1,8 @@
1
  ---
2
- title: Obs Stream
3
- emoji: 🏆
4
- colorFrom: yellow
5
- colorTo: indigo
6
  sdk: docker
7
- pinned: false
8
  ---
9
-
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: OBS Live Stream
3
+ emoji: 📡
4
+ colorFrom: purple
5
+ colorTo: blue
6
  sdk: docker
7
+ app_port: 7860
8
  ---
 
 
go2rtc.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ api:
2
+ listen: ":7860"
3
+ origin: "*"
4
+
5
+ streams:
6
+ live: []
7
+
8
+ webrtc:
9
+ candidates:
10
+ - stun:stun.l.google.com:19302