Unraid gui through reverse proxy


Nem

6 posts in this topic Last Reply

Recommended Posts

Id like to be able to access the unraid webgui via reverse proxy now that unraid 6.4 has letsencrypt SSL certs

 

I'd like to navigate to www.web.com/admin and be able to access the gui, but unraid doesnt have an option for adding a base url

 

Im currently using this:

 

    location ^~ /admin {
        include /config/nginx/proxy.conf;
        proxy_pass http://192.168.187.10:8181;
    }

 

unraid isn't expecting to see /admin so nothing loads. Is there a way to add /admin to the target url even though unraid doesnt allow for customizing the base url it uses?

Link to post

actually I think I just figured it out and it seems to work

 

From this stackoverflow answer: https://stackoverflow.com/questions/32542282/how-do-i-rewrite-urls-in-a-proxy-response-in-nginx

 

the key seems to be to keep the trailing slash in the proxy_pass line: `proxy_pass http://192.168.187.10:8181/` . That way the location (/admin) will just be placed by / in the resulting url

Link to post

That is pretty interesting, Nginx actually rewrites html on the fly to use the subdirectory. I can see how that would work for a static site, but I don't see how it could account for all the ways that javascript might construct urls. Personally, I wouldn't feel comfortable using that feature on the unRAID webgui, if it misses something the effects could be severe.

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.