YunoHost-Apps / nextcloud_ynh

Nextcloud package for YunoHost
https://nextcloud.com/
GNU Affero General Public License v3.0
144 stars 62 forks source link

Cant connect over plain http, always tries to redirect to https (android apps require either plain http or valid cert, which I cant get) #656

Closed waikaeth closed 5 months ago

waikaeth commented 5 months ago

Describe the bug

I am unsure if this is an issue with nextcloud package in particular or with yunohost configs in general, but Nextcloud forces redirect to https, despite https redirect being disabled in yunohost with yunohost settings set security.nginx.redirect_to_https -v False and despite changing the config.php file to say ''overwrite.cli.url' => 'http://nextcloud.local', rather then what it was set to 'overwrite.cli.url' => 'https://nextcloud.local',

If I directly enter the url http://nextcloud.local/login in the address bar, the page will load in plain http, but it wont let me log in. hitting enter just takes me back to login screen. whether or not the password is correct does not even matter, whether the credentials are correct or not, page just reloads. I suspect this has something to do with the SSO ?

And using http://nextcloud.local redirects to https. And since my box has no internet connection, Its a self signed cert. Which the vast majority of android apps will not accept (like flocus). Plain http would be fine. but I cant figure out how to get plain http to work.

Context

Steps to reproduce

in url bar of fresh browser, type http://nextcloud.local. domain redirects to https.

Expected behavior

dont redirect to https. I cant get a valid cert, so I need plain http

Logs

alexAubin commented 5 months ago

cf https://github.com/YunoHost/issues/issues/2319#issuecomment-1913307869