Enhancement - parameter to denote the base_url the webserver should run on. #15
extorn
started this conversation in
Enhancements
Replies: 1 comment
-
I've coded "a solution" for this. It's in pull request 16 (#16) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As per this discussion Motion-Project/motion#1508, it would be really useful to permit definition of a base_url parameter for the project. This is needed when using it on a server behind a reverse proxy (such as nginx).
e.g. I expose it through https://myserver/birdbox
The issue is that the references to hostname mean it accesses for example the config.json at https://myserver/config.json NOT https://myserver/birdbox/config.json.
This could be achieved by adding a parameter to your motionplus.conf file and add this to the end of the full host name given if not localhost which would avoid my need for rewrites in nginx to 'work around' the issue (luckily no conflicts with existing resources at https://myserver that I cannot move.
Beta Was this translation helpful? Give feedback.
All reactions