The Prоxy module
The module proxies HTTP requests to the specified endpoint. For this purpose, an additional X-Targeted-For
header is used in the requests.
Example
BASH
curl -k --request POST \
--url 'http://192.168.200.31:8776/onvif/event_service' \
--header 'X-Targeted-For: http://192.168.204.25:80' \
--header 'Accept: */*' \
--header 'Content-Type: text/xml; charset=utf-8' \
--header 'Host: 127.0.0.1'
--data '{"message": "Hello"}'
This request is the same as if the client directly contacted the host:
BASH
curl -k --request POST \
--url 'http://192.168.204.25:80/onvif/event_service' \
--header 'Accept: */*' \
--header 'Content-Type: text/xml; charset=utf-8' \
--header 'Host: 127.0.0.1'
--data '{"message": "Hello"}'
The configuration of Proxy is detailed in the Configuration of Mediaserver documentation section.