hevelius / files_external_onedrive

:mega: :floppy_disk: External storage support for Microsoft OneDrive
GNU General Public License v2.0
72 stars 22 forks source link

Does this app not reflect the systemwide set proxy for connection to microsoft? #65

Open 0k0n opened 3 years ago

0k0n commented 3 years ago

Hi all, i am using a nextcloud 22.0 docker image successfuly with mandatory use of a proxy for internet access. Nextcloud itself reflects proxy setting inside docker well and everything works fine. While i try to grant access to onedrive share in nextcloud the system requests the ms-account authentication via microsoft pages and then shows a red exclamation mark beside onedrive external files declaration in nextcloud.

in the log of nextcloud server on docker i find some lines showing: client 172.18.0.1:58938] [owncloud][index][3] {"Exception":"GuzzleHttp\\Exception\\ConnectException","Message":"cURL error 7: Failed to connect to login.microsoftonline.com port 443: Connection timed out (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://login.microsoftonline.com/common/oauth2/v2.0/token",

matching to this error i can find in the kernel log of the docker host some denied direct accesses from nextcloud docker 433 to internet what should not happen if the proxy would be used: do9-net DROP IN=docker9 OUT=eno1 PHYSIN=veth258dda8 MAC=02:42:c0:50:26:96:02:42:ac:12:00:14:08:00 SRC=172.18.0.20 DST=20.190.159.138 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=41612 DF PROTO=TCP SPT=49968 DPT=443 WINDOW=64240 RES=0x00 SYN URGP=0

Might it be, that this app does not reflect a proxy that is configured for nextcloud in config.php under 'proxy' => ???

Any hint appreciated!

Thanks in Advance!

Olaf