mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-13 11:03:43 +00:00
Merge pull request #127 from tiny-pilot/nginx-doc
Document how to integrate uStreamer with nginx
This commit is contained in:
18
README.md
18
README.md
@@ -76,6 +76,24 @@ $ ./ustreamer \
|
|||||||
|
|
||||||
You can always view the full list of options with ```ustreamer --help```.
|
You can always view the full list of options with ```ustreamer --help```.
|
||||||
|
|
||||||
|
---
|
||||||
|
# Integrations
|
||||||
|
|
||||||
|
## nginx
|
||||||
|
|
||||||
|
When uStreamer is behind an nginx proxy, nginx's buffering behavior introduces latency into the video stream. It's possible to disable nginx's buffering to eliminate the additional latency:
|
||||||
|
|
||||||
|
```text
|
||||||
|
location /stream {
|
||||||
|
# Disable buffering for uStreamer video stream
|
||||||
|
postpone_output 0;
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_ignore_headers X-Accel-Buffering;
|
||||||
|
|
||||||
|
proxy_pass http://ustreamer;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
-----
|
-----
|
||||||
# Raspberry Pi Camera Example
|
# Raspberry Pi Camera Example
|
||||||
Example usage for the Raspberry Pi v1 camera:
|
Example usage for the Raspberry Pi v1 camera:
|
||||||
|
|||||||
Reference in New Issue
Block a user