Issues with GUI behind internal Nginx proxy

Started by redbull666, May 26, 2020, 10:50:13 AM

Previous topic - Next topic
I am running the GUI behind an internal Nginx reverse proxy running on LXC. This proxy has a domain attached to it. When I log in directly to the internal Opnsense IP, everything works well. But connecting through the proxy, the GUI breaks. For example, most menus are empty, there's no Aliases visible, things like that.

I experimented a bit with various Nginx configs, but no luck, currently have:
  location  / {
    proxy_pass  https://192.168.10.1/;
    proxy_http_version 1.1;
    proxy_set_header   Upgrade $http_upgrade;
    proxy_set_header   Connection keep-alive;
    proxy_cache_bypass $http_upgrade;
    proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header   X-Forwarded-Proto $scheme;
    proxy_set_header   X-Forwarded-Host $http_host;
  }


But just having this, also does not work:
  location  / {
    proxy_pass  https://192.168.10.1/;
  }


Anyone have a working setup that could share it with me? Or knows why this breaks the GUI?