Add stream_baseurl to view webcontrol page with previews behind a reverse proxy #1508
Replies: 11 comments 3 replies
-
Can you provide more details what is the issue? |
Beta Was this translation helpful? Give feedback.
-
If motion web control and stream server is behind a firewall and reverse proxy, the proxy for stream is configured with custom url /your-motion-streams, the images for streams are not displayed in web control UI page. |
Beta Was this translation helpful? Give feedback.
-
And what exact error does the browser log in the console? |
Beta Was this translation helpful? Give feedback.
-
When browsing http://server1.some.net/motion/
|
Beta Was this translation helpful? Give feedback.
-
have you tried setting |
Beta Was this translation helpful? Give feedback.
-
If what you are talking about is not a CORS issue, but because the internal port |
Beta Was this translation helpful? Give feedback.
-
@tosiara sure, but it would save a lot of hassle if built-in webcontrol web ui page could do it out of the box. |
Beta Was this translation helpful? Give feedback.
-
+1 I came here hoping for a quick easy config option to specify either a custom hostname or path prefix for stream URLs. I'm also running motion behind an apache reverse proxy and only able to get the web controls working thus far. Here, the web control area is mapped to https://cameras.home but motion seems to be mapping the first camera stream to http://localhost:22814/101/stream for some reason, preventing it from working. If there were a |
Beta Was this translation helpful? Give feedback.
-
+1 I would also prefer to use this requested feature. |
Beta Was this translation helpful? Give feedback.
-
Here is something for apache users, it's probably not perfect but it's something. If the camera has a different name it'll need adjusting, if anyone has a better conf please share it.
|
Beta Was this translation helpful? Give feedback.
-
I'm recently trying nginx here is my take on a configuration for it:
|
Beta Was this translation helpful? Give feedback.
-
Add stream_baseurl config option. It appears to be needed by webui if motion is behind proxy.
I was thinking about changing https://github.com/Motion-Project/motion/blob/master/src/webu_html.c#L663
So the logic would be:
if there stream_baseurl is set use it
else strm_info.proto, webui->hostname, strm_info.port to build url.
(This obviously would not be used if stream port is set in camera configs.)
Beta Was this translation helpful? Give feedback.
All reactions