LukeChannings/moviematch

Reverse Proxy Subdirectory Support

Closed this issue · 3 comments

Reverse proxy via Nginx works without much effort, but I've been unable to put it in a subdirectory. Is this supported? Example:
URL is https://domain.com/moviematch instead of https://domain.com

Every time I try to load the page it simply said 'Not Found'. Google Chrome dev tools show that a 404 error is occurring. I have other applications running behind a reverse proxy using subdirectories and would love to add this to the mix.

Please let me know if I can provide any further details.

You beat me to this

I've added support for setting the root path in v1.2.0, here's how it works:

Start MovieMatch with ROOT_PATH=/moviematch, and use an nginx config that looks like this:

http {
  server {
    listen 9000;

    location ^~ /moviematch/ {
        proxy_pass http://localhost:8000/;
        proxy_set_header Upgrade $http_upgrade;
    }
  }
}

Thanks! Super weird I only got the notification for this today...