Hi there, I am unable to solve this issue, this is so weird. On my laptop, I managed to solve the issue by adding 'overwriteprotocol' => 'https'. However, on my phone I had to use a QR code (app password) to authenticate.
Now, I want to sync my desktop computer. 'overwriteprotocol' => 'https' doesnât help. So I had the idea to try using an app password (as I did for my phone) but I have a very weird bug. In the browser, I have an error message telling me that the username or the password is wrong BUT in the page where I created the app password I can see a successful authentication in the list of sessions (âDevices & sessionsâ). Because of that, I cannot use the same trick as on my phone and I am truly unable to grant access to my desktop computer.
I saw some people mentioning that having a reverse-proxy makes a difference and that the overwriteprotocol trick doesnât work in this case. In my particular case, I use Traefik. Is there someone who had to deal with this issue while using Traefik? Can someone please help me? Itâs driving me crazy
Or maybe, as several people are unable like me to solve this issue, should we open an issue on Github?
Hi again I found a hack to bypass the issue. It is not a fix but it allowed me to authenticate for this one time. I think it might be helpful for people who are unable to fix the issue with overwriteprotocol, so I will try to explain what I did there.
In the browser window (I use Firefox), instead of clicking on the âGrant Accessâ button, right click on the button and âInspectâ. In the HTML source, look for the URL of your server. Basically, the button is programmed to execute a POST request using this URL. The problem is that the URL starts with âhttpâ instead of âhttpsâ. Now, right click on the code and âEdit As HTMLâ. Add a âsâ manually so that the URL looks like âhttps://â.
Now, click on the âGrant Accessâ button. As you edited the URL, the POST request will use the right protocol and it should work
If I understood well, overwriteprotocol is supposed to replace âhttpâ with âhttpsâ. My hack consists in doing this job manually, basically
i have the same problem and nothing that is describe here and in official docs helped me.
My nextcloud is in docker with the nginx reverse proxy companion. In adition i use ipv6 AND ipv4.
In the nextcloud backend i get the warning message:
Du greifst ĂŒber eine sichere Verbindung auf deine Instanz zu, deine Instanz generiert jedoch unsichere URLs. Dies bedeutet höchstwahrscheinlich, dass du dich hinter einem Reverse-Proxy befindest und die Konfigurationsvariablen zum Ăberschreiben nicht richtig eingestellt sind. Bitte lese die Dokumentation hierzu .
But everything is defined like in the documentation described.
My config looks like that:
i think iâve found the issue.
I already set docker-env variables but i used " â " for the string-values instead just combine key=value without ââ.
If the problem has to do with Nextcloud playing nice with a reverse proxy server, as was my case, then in addition to overwriteprotocol you may want to try adding a line for overwritehost, which fixed my problem. Per the config.sample.php file:
The automatic hostname detection of Nextcloud can fail in certain reverse
proxy and CLI/cron situations. This option allows you to manually override
the automatic detection; for example www.example.com, or specify the port