Hi all,
I believe this issue stems from the Nextcloud update to version 22, as everything was working fine before.
What I'm experiencing is extremely similar to what this person is experiencing.
So I have DDNS setup and HAProxy acting as a reverse proxy on my pfSense router, which also handles SSL offloading for my Nextcloud server with an ACME certificate.
I have a specific FQDN set up to be forwarded to my Nextcloud's server IP, which is left at the defaults to NAT to port 8282.
But since the update, Nextcloud also has opened up port 8283 for HTTPS connections, and I think there's something weird going on with the way the plugin sets up the nginx configuration to override some things? I'm not too sure.
Anyways, every time I try to access my Nextcloud server now (after changing HAProxy to redirect to port 8283 instead of 8282), I get a screen saying:
"400 Bad Request. The plain HTTP request was sent to HTTPS port".
Now I can only access Nextcloud through the "Manage" button on the plugin page.
The usual solution offered by some when encountering this error is to edit the `nginx.conf` file under `/usr/local/etc/nginx/` and add `ssl off;` to the file.
That has not fixed anything, and TrueNAS seems to revert the file to defaults after restarting the jail/plugin.
I've tried the usual of adding `'overwriteprotocol' => 'https',` to the `config.php` file, but that also does not do anything.
I've tried uninstalling the plugin and grabbing a fresh installation of the Nextcloud plugin, still the same issue. Also tried rebooting TrueNAS, again, nothing.
Any help would be appreciated!
I believe this issue stems from the Nextcloud update to version 22, as everything was working fine before.
What I'm experiencing is extremely similar to what this person is experiencing.
So I have DDNS setup and HAProxy acting as a reverse proxy on my pfSense router, which also handles SSL offloading for my Nextcloud server with an ACME certificate.
I have a specific FQDN set up to be forwarded to my Nextcloud's server IP, which is left at the defaults to NAT to port 8282.
But since the update, Nextcloud also has opened up port 8283 for HTTPS connections, and I think there's something weird going on with the way the plugin sets up the nginx configuration to override some things? I'm not too sure.
Anyways, every time I try to access my Nextcloud server now (after changing HAProxy to redirect to port 8283 instead of 8282), I get a screen saying:
"400 Bad Request. The plain HTTP request was sent to HTTPS port".
Now I can only access Nextcloud through the "Manage" button on the plugin page.
The usual solution offered by some when encountering this error is to edit the `nginx.conf` file under `/usr/local/etc/nginx/` and add `ssl off;` to the file.
That has not fixed anything, and TrueNAS seems to revert the file to defaults after restarting the jail/plugin.
I've tried the usual of adding `'overwriteprotocol' => 'https',` to the `config.php` file, but that also does not do anything.
I've tried uninstalling the plugin and grabbing a fresh installation of the Nextcloud plugin, still the same issue. Also tried rebooting TrueNAS, again, nothing.
Any help would be appreciated!