Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

nginx reverse proxy: dynamix (and maybe stock unraid gui?)

Featured Replies

i've been playing with this on and off without much luck but i finally got it working i think and in my searching i found some posts without much information so i thought i'd provide this to others.

 

location /lime {
        proxy_pass http://tower:80/;
    }
    location / {
        proxy_pass https://server/lime/;
    }

 

with just location /lime the links, images and css wouldn't work until i set / to look back to /lime essentially. it's working for me for the most part. the only issue is since i'm using location / i can't use my default /index.html anymore.. any ideas?

 

Give this a shot:

 

location /lime/ {
    proxy_pass http://tower:80/;
    proxy_redirect http://tower:80/ /;
}

  • Author

no luck, images and css broken because everything is referencing the root dir /

  • 3 months later...
  • Author

for anyone else trying to do this, i kinda got something "working". it looks like it works but it's basically read only, most of the action buttons don't really do anything. please advise if you know how to get this working!

 

        location /unraid/ { proxy_pass http://tower/; }

        location /webGui/ { proxy_pass http://tower/webGui/; }

        location /plugins/ { proxy_pass http://tower/plugins/; }

        location /state/ { proxy_pass http://tower/state/; }

        location /Dashboard/ { proxy_pass http://tower/Dashboard/; }

        location /Main/ { proxy_pass http://tower/Main/; }

        location /Shares/ { proxy_pass http://tower/Shares/; }

        location /Users/ { proxy_pass http://tower/Users/; }

        location /Settings/ { proxy_pass http://tower/Settings;  }

        location /Plugins/ { proxy_pass http://tower/Plugins/; }

        location /Docker/ { proxy_pass http://tower/Docker/; }

        location /Tools/ { proxy_pass http://tower/Tools/; }

 

for anyone else trying to do this, i kinda got something "working". it looks like it works but it's basically read only, most of the action buttons don't really do anything. please advise if you know how to get this working!

 

        location /unraid/ { proxy_pass http://tower/; }

        location /webGui/ { proxy_pass http://tower/webGui/; }

        location /plugins/ { proxy_pass http://tower/plugins/; }

        location /state/ { proxy_pass http://tower/state/; }

        location /Dashboard/ { proxy_pass http://tower/Dashboard/; }

        location /Main/ { proxy_pass http://tower/Main/; }

        location /Shares/ { proxy_pass http://tower/Shares/; }

        location /Users/ { proxy_pass http://tower/Users/; }

        location /Settings/ { proxy_pass http://tower/Settings;  }

        location /Plugins/ { proxy_pass http://tower/Plugins/; }

        location /Docker/ { proxy_pass http://tower/Docker/; }

        location /Tools/ { proxy_pass http://tower/Tools/; }

 

Read-only for me as well, using an apache version.

 

EDIT: Found the problem.  Commands are sent via /update.php page.  Trying to figure out how to proxypass just that page.

for anyone else trying to do this, i kinda got something "working". it looks like it works but it's basically read only, most of the action buttons don't really do anything. please advise if you know how to get this working!

 

        location /unraid/ { proxy_pass http://tower/; }

        location /webGui/ { proxy_pass http://tower/webGui/; }

        location /plugins/ { proxy_pass http://tower/plugins/; }

        location /state/ { proxy_pass http://tower/state/; }

        location /Dashboard/ { proxy_pass http://tower/Dashboard/; }

        location /Main/ { proxy_pass http://tower/Main/; }

        location /Shares/ { proxy_pass http://tower/Shares/; }

        location /Users/ { proxy_pass http://tower/Users/; }

        location /Settings/ { proxy_pass http://tower/Settings;  }

        location /Plugins/ { proxy_pass http://tower/Plugins/; }

        location /Docker/ { proxy_pass http://tower/Docker/; }

        location /Tools/ { proxy_pass http://tower/Tools/; }

 

Read-only for me as well, using an apache version.

 

EDIT: Found the problem.  Commands are sent via /update.php page.  Trying to figure out how to proxypass just that page.

 

I stuck it on a subdomain.  http://unraid.domain.com.  Since the /update.php was on root, it was breaking everything else.  I added this in the subdomain        location / { proxy_pass http://tower/; }

  • 4 months later...

for anyone else trying to do this, i kinda got something "working". it looks like it works but it's basically read only, most of the action buttons don't really do anything. please advise if you know how to get this working!

 

        location /unraid/ { proxy_pass http://tower/; }

        location /webGui/ { proxy_pass http://tower/webGui/; }

        location /plugins/ { proxy_pass http://tower/plugins/; }

        location /state/ { proxy_pass http://tower/state/; }

        location /Dashboard/ { proxy_pass http://tower/Dashboard/; }

        location /Main/ { proxy_pass http://tower/Main/; }

        location /Shares/ { proxy_pass http://tower/Shares/; }

        location /Users/ { proxy_pass http://tower/Users/; }

        location /Settings/ { proxy_pass http://tower/Settings;  }

        location /Plugins/ { proxy_pass http://tower/Plugins/; }

        location /Docker/ { proxy_pass http://tower/Docker/; }

        location /Tools/ { proxy_pass http://tower/Tools/; }

 

All the above instructions can be simplified into this:

 

location / {
	proxy_pass http://tower;
}

 

And everything is going to work. I understand though that you wanted to slam the web gui under the /unraid subdirectory but it's not going to work because, well, because the web gui hasn't be written in a way that would make it play nicely with a reverse proxy in front of it. All that we can do is TO ASK that the web gui be rewritten with more relative URLs in its code.

 

For the meantime you have to blow a FQDN for unraid alone as smdion suggested, which is not a bad idea in and of itself.

But for these kind of things I would really like to slam all my apps under specific subdirectories like this:

 

        # THIS IS NOT FULLY WORKING. JUST HERE FOR EDUCATIONAL PURPOSES
#location /unraid/ {
#	proxy_pass http://tower/;

#	proxy_set_header	Host $host;
#	proxy_set_header	X-Real-IP $remote_addr;
#	proxy_set_header	X-Forwarded-For $proxy_add_x_forwarded_for;
#	proxy_set_header	X-Forwarded-Proto $scheme;
#}

        # THIS IS WORKING 99%
location /transmission/ {
	rewrite ^/transmission(/?)$ /transmission/web/ permanent;

	proxy_pass		http://transmission:9091;
	proxy_pass_header	X-Transmission-Session-Id;

	proxy_set_header	Host $host;
	proxy_set_header	X-Real-IP $remote_addr;
	proxy_set_header	X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_set_header	X-Forwarded-Proto $scheme;
    }

 

Transmission itself has a little problem that I'm still unable to solve but thanks to its unique URI (/transmission/) you can kind of fool it more easily. So this is the config I'm running at the moment (order is important):

 

location /transmission/ {
	rewrite ^/transmission(/?)$ /transmission/web/ permanent;

	proxy_pass		http://transmission:9091;
	proxy_pass_header	X-Transmission-Session-Id;

	proxy_set_header	Host $host;
	proxy_set_header	X-Real-IP $remote_addr;
	proxy_set_header	X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_set_header	X-Forwarded-Proto $scheme;
}

location / {
	proxy_pass		http://tower;

	proxy_set_header	Host $host;
	proxy_set_header	X-Real-IP $remote_addr;
	proxy_set_header	X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_set_header	X-Forwarded-Proto $scheme;
}
}

 

I'm just hoping that one day they will make unRAID more reverse proxy compatible.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.