Skip to content

Instantly share code, notes, and snippets.

@yringler
Last active July 14, 2025 02:59
Show Gist options
  • Save yringler/ffffe52208dc5f1850ac24cd264dda30 to your computer and use it in GitHub Desktop.
Save yringler/ffffe52208dc5f1850ac24cd264dda30 to your computer and use it in GitHub Desktop.
rtsp server docker
# Then the public URL becomes https://test.com/live
test.com {
reverse_proxy localhost:8888
}
services:
rtsp:
image: bluenviron/mediamtx:1.13.0
network_mode: host
volumes:
- mediamtx.yml:/mediamtx.yml
authInternalUsers:
# Username. 'any' means any user, including anonymous ones.
- user: obs
# Password. Not used in case of 'any' user.
# Use a secure password - then obs studio can stream to here
# sample URL to give obs - rtmp://localhost/live?user=obs&pass=securepassword
pass: securepasswordhere
# IPs or networks allowed to use this user. An empty list means any IP.
ips: []
# List of permissions.
permissions:
# Available actions are: publish, read, playback, api, metrics, pprof.
- action: publish
- action: read
- action: playback
# Unstead of an any, you could make a user with a secure password. That way at least people can only access if they have the link
# Not just if they got the domain from DNS
- user: any
permissions:
- action: read
- action: playback
paths:
live:
source: publisher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment