atl-far-east Posted December 4, 2017 Share Posted December 4, 2017 Hey all, Odd problem that I can't seem to troubleshoot. I have letsencrypt setup so that outside of my network I can access the unRAID web GUI from admin.domain.tld. When I'm on the network, and I access directly the server IP, the CPU loads update and show the current CPU load. When I'm using the admin.domain.tld address, everything works, except the CPU usage doesn't show/update. See screenshot attached - memory shows (but does not update, obviously) but CPU usage doesn't even load. Here's the relevant bit of my nginx config (with the actual IP). I've added all the proxy_set_header lines from Googling but they're not helping. server { listen 443 ssl; # listen 80; root /config/www; index index.html index.htm index.php; server_name admin.*; ssl_certificate /config/keys/letsencrypt/fullchain.pem; ssl_certificate_key /config/keys/letsencrypt/privkey.pem; ssl_dhparam /config/nginx/dhparams.pem; ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA'; ssl_prefer_server_ciphers on; client_max_body_size 0; location / { auth_basic "Restricted"; auth_basic_user_file /config/nginx/.htpasswd; include /config/nginx/proxy.conf; 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; proxy_pass http://192.168.1.IP:8080; } } Any ideas? Thanks! Quote Link to comment
peter_sm Posted December 4, 2017 Share Posted December 4, 2017 I see exactly the same on my configuration. I have almost same config as you. Don’t now how to solve it....Skickat från min iPhone med Tapatalk Quote Link to comment
atl-far-east Posted December 7, 2017 Author Share Posted December 7, 2017 Guessing there may not be a quick solution here... last bump in case. Thanks! Quote Link to comment
FreeMan Posted December 7, 2017 Share Posted December 7, 2017 This won't solve your issue with the function of the WebGUI via LE/NGINX, but it will allow you to accomplish effectively the same thing: I just setup an OpenVPN-AS server docker on my machine, and I use jbrodriguez's ControlR app. I get fairly full control of the server via the app, and if there's anything I can't do via the app, I can just open the web browser on my phone and connect to the server via its internal IP address, since I'm VPNed in. It would get you the same result, but by a different method. Just a though... Quote Link to comment
atl-far-east Posted December 7, 2017 Author Share Posted December 7, 2017 Thanks FreeMan. In general the WebUI works, so the situation is OK - it's literally just the CPU stats that don't show 'live'. Quote Link to comment
atl-far-east Posted January 13, 2018 Author Share Posted January 13, 2018 For anyone who cares, I think I fixed this! I think it may be due to nginx not working with Websockets by default. I added these lines to the site config: proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; And it worked. E.g., this is the location settings for my unRAID proxy: location / { auth_basic "Restricted"; auth_basic_user_file /config/nginx/.htpasswd; include /config/nginx/proxy.conf; 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; proxy_pass http://192.168.1.106:8080; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; } And now the CPU stats update in real time! Fingers crossed this is the fix. 2 Quote Link to comment
mata7 Posted October 3, 2018 Share Posted October 3, 2018 On 1/13/2018 at 8:56 AM, atl-far-east said: For anyone who cares, I think I fixed this! I think it may be due to nginx not working with Websockets by default. I added these lines to the site config: proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; And it worked. E.g., this is the location settings for my unRAID proxy: location / { auth_basic "Restricted"; auth_basic_user_file /config/nginx/.htpasswd; include /config/nginx/proxy.conf; 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; proxy_pass http://192.168.1.106:8080; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; } And now the CPU stats update in real time! Fingers crossed this is the fix. man thank you very much, mine now work to after adding thus lines, it was drive me crazy , again thank you 1 Quote Link to comment
mikeydk Posted June 8, 2019 Share Posted June 8, 2019 On 1/13/2018 at 2:56 PM, atl-far-east said: Fingers crossed this is the fix. Fixed it for me! 😍 Quote Link to comment
WowaDriver Posted July 14, 2021 Share Posted July 14, 2021 On 1/13/2018 at 2:56 PM, atl-far-east said: For anyone who cares, I think I fixed this! I think it may be due to nginx not working with Websockets by default. I added these lines to the site config: proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; And it worked. E.g., this is the location settings for my unRAID proxy: location / { auth_basic "Restricted"; auth_basic_user_file /config/nginx/.htpasswd; include /config/nginx/proxy.conf; 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; proxy_pass http://192.168.1.106:8080; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; } And now the CPU stats update in real time! Fingers crossed this is the fix. Can you tell me in which file i have to put in these lines and where this is located, please? Quote Link to comment
atl-far-east Posted July 14, 2021 Author Share Posted July 14, 2021 I put this in the site configuration for the Unraid admin site - but it depends on how your Nginx reverse proxy is setup. For my setup, it was /mnt/user/appdata/nginx/nginx/site-confs/default 1 Quote Link to comment
Recommended Posts
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.