Add access key gating to incoming streams

For the moment this is a singleton. One access key will let you stream
to any app or stream key. It's denoted in the form of appending a GET
parameter to the URL like `?access_key=foobarbaz`

This at least means someone who knows the stream URL (frex to view it)
won't also be able to stream.
This commit is contained in:
Trysdyn Black 2025-02-16 17:06:35 -08:00
parent c934bedd44
commit 4c2c82cfc3
3 changed files with 24 additions and 3 deletions

View file

@ -0,0 +1,6 @@
[Service]
# This is an access key you wish to require in all inbound streams. This must
# be provided as a GET parameter "access_key". For example:
# rtmp://example.org/app/stream?access_key=loginkeyhere
Environment="OVENMONITOR_ACCESS_KEY=loginkeyhere"