Handle overwriteprotocol issue for granting access for apps #5

Closed
opened 2021-04-28 07:43:29 +00:00 by decentral1se · 4 comments
Owner

Both Nextcloud android and the Linux desktop Nextcloud sync client fail to grant access on the default configuration of this app. I needed to follow https://help.nextcloud.com/t/closed-both-the-android-and-the-linux-client-freeze-when-trying-to-grant-access-after-login/62383/8 (add one line to the config/config.php file) and it worked. Maybe we should document this? Or perhaps a post-install step? Or a entrypoint hack to put it in? Not sure.

Both Nextcloud android and the Linux desktop Nextcloud sync client fail to grant access on the default configuration of this app. I needed to follow https://help.nextcloud.com/t/closed-both-the-android-and-the-linux-client-freeze-when-trying-to-grant-access-after-login/62383/8 (add one line to the `config/config.php` file) and it worked. Maybe we should document this? Or perhaps a post-install step? Or a entrypoint hack to put it in? Not sure.
Author
Owner
Also mentioned over in https://github.com/zorn-v/nextcloud-social-login/blob/40045a9ca15e848646eb9c2f85d5cc8b9a4db5ef/README.md#about-callbackreply-url.
Owner

Got bitten by this yesterday, colour me even-more-motivated to fix it. Weird that the default Docker config doesn't work?

Got bitten by this yesterday, colour me even-more-motivated to fix it. Weird that the default Docker config doesn't work?
Author
Owner
From https://github.com/nextcloud/docker#using-the-apache-image-behind-a-reverse-proxy-and-auto-configure-server-host-and-protocol it looks like you can set `OVERWRITEPROTOCOL=https`?
Author
Owner
$overwriteProtocol = getenv('OVERWRITEPROTOCOL');
if ($overwriteProtocol) {
  $CONFIG['overwriteprotocol'] = $overwriteProtocol;
}

in config/reverse-proxy.config.php

```php $overwriteProtocol = getenv('OVERWRITEPROTOCOL'); if ($overwriteProtocol) { $CONFIG['overwriteprotocol'] = $overwriteProtocol; } ``` in `config/reverse-proxy.config.php`
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/nextcloud#5
No description provided.