ZoneMinder / zoneminder

ZoneMinder is a free, open source Closed-circuit television software application developed for Linux which supports IP, USB and Analog cameras.
http://www.zoneminder.com/
GNU General Public License v2.0
5.16k stars 1.23k forks source link

ZM_MIN_STREAMING_PORT under proxy, server URL becomes IP address #3363

Open koptermax opened 3 years ago

koptermax commented 3 years ago

Nginx has listen rule to _webdnsname:ports that leads to _proxypass to _zmserver_ip:$zmserverport All works fine if I don't use multiport streaming.

Setting ZM_MIN_STREAMING_PORT and configuring the relative ports on NGINX proxy_pass, all works fine using local DNS-provided servername in my LAN.

But for some reason, when querying the server by the _webdnsname that nginx listens to and proxies, the URL of the monitors that ZoneMinder generates and tries to query, are no longer in the form of _https://dns_name:port/zm_, but they become _https://local_lan_server_ip:port/zm_

This obviously breaks monitors when connecting from outside the LAN.

See:

Any clue what could be wrong in the code?

welcome[bot] commented 3 years ago

Thanks for opening your first issue here! Just a reminder, this forum is for Bug Reports only. Be sure to follow the issue template!

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.