reverse proxied unraid gui doesn't ask for password


Recommended Posts

Hello, I'm not sure where to begin, whether this is the right subforum or not but I'll try to be as clear as possible.

 

I have compiled nginx package for slackware since I wanted a reverse proxy that worked even when the array is stopped. Build, installation and configuration had been fine. nginx is working 100%.

There's only one problem... the GUI doesn't ask for password!! It just goes straight in.

 

This is how my site is configured:

 

server {
listen 8000;
listen 4430 ssl;

server_name fqdn.mydomain.whatever tower.mylocaldomain.whatever;

ssl_certificate /boot/config/nginx/certs/my.pem;
ssl_certificate_key /boot/config/nginx/certs/my.key;

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

location / {
	proxy_pass			http://localhost;
}
}

 

I can change the proxy_pass directive to this:

 

location / {
	proxy_pass			http://tower;
}

 

Still no password asked.

 

But, if I change the proxy_pass directive to this:

 

location / {
	proxy_pass			http://tower.mylocaldomain.whatever;
}

 

Then it asks for password. What am I missing? Is it a security bug on unRAID side?

Link to comment

I compiled it as a Slackware package, it's not a docker. It stays under /boot/extra , the folder that unRAID looks up for installing additional packages at startup. Then I made some modifications to make the configuration work from boot/config/nginx so that modifications don't need to be copied over to etc/nginx , although I copy nginx.conf at startup

Link to comment

I compiled it as a Slackware package, it's not a docker. It stays under /boot/extra , the folder that unRAID looks up for installing additional packages at startup. Then I made some modifications to make the configuration work from boot/config/nginx so that modifications don't need to be copied over to etc/nginx , although I copy nginx.conf at startup

 

Yep, that's it. unRAID don't ask credentials when accessed within the localhost.

Link to comment

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.