-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable default https redirection #200
Comments
Are you using any reverse proxy? Are you using apache? If so, did you run your Dockerfile updating your sites-enable conf file? And just curious... why would you like to disable it? As of the description of this image: "When you want to have your server reachable from the internet adding HTTPS-encryption is mandatory!" |
I juste deploy docker with the official nextcloud docker and i don't edit any config file |
I would suggest you to check out the possibility to get a Free Certificate with Lets Encrypt which will make a more secure environment. You could use some reverse proxy, easy to set up, as of: https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion Along with: https://github.com/evertramos/docker-nextcloud-letsencrypt Hope it will be of help! I believe Nextcloud was designed to use https for security reasons, which I am not sure how you will disabled it in production. |
Which version of the Nextcloud image did you use? Normally the redirects are handled by the webserver (apache / nginx), so your solution will probably be in the webserver configuration. Did you install or modify a .htaccess file? |
There really are very important reasons to be able to disable https in some circumstances. For example, I have a purely internal nextcloud to sync files locally on a rpi, and have no reason whatsoever to want to waste processing overhead for https in that use case. |
I disabled https redirect by commenting following line in nginx config: |
"fastcgi_param HTTPS on;" does not work here. Any other ideas? |
You should remove http2 directive in server because most browsers do not support http2 without tls https://stackoverflow.com/questions/34108188/how-to-enable-h2c-in-nginx |
Also trying to remove the overhead for https as I use my own https server to redirect. Followed all the suggestions here: https://help.nextcloud.com/t/how-disable-https-for-nginx/52718 as well as removing "fastcgi_param HTTPS on;" and tweaking 'overwrite.cli.url' to use http, but the webui simply doesn't load. [edit] Spoke too soon. Works fine - I just forgot to change my docker container port mapping from 443 to 80. |
TLS/SSL termination on an nginx reverse proxy that is internet facing is far superior than exposing Nextcloud. HTTPS is not necessary when nginx is terminating TLS |
Some examples are provided in https://github.com/nextcloud/docker/tree/master/.examples/docker-compose/insecure |
Open the ticket |
@chrisdlangton Does that configuration not already work? Having the https redirect would not seem to hurt that use case... |
this is what is happening For completeness, that TLS termination is happening using AWS Load Balancers + AWS ACM, not actually an nginx host, but essentially the same if you want to home lab it yourself. Notice there is no way to reach the Nextcloud web server itself. If you removed https redirection you could permit poor usage patterns - but you also permit best-practices like separation of concerns having the app do just web server things and load balancers do network things, plus principle of least privilege prevents app vulnerabilities exposing the certificate or having a lateral movement vector to through the network workloads (nginx). Basically, remove http redirect to https for the docker container, which is essentially just an "app" not a network appliance/workload. Just do 1 thing, and do that 1 thing well. |
Hello everyone! |
join to previous comment. Try to setup reverse proxy with tls termination for 2 sites (nextcloud docker + vaultwarden docker) only 'overwriteprotocol' => 'http', in config.php did the trick ... (default https) |
This thread appears to no longer be applicable. I can't find where we ever did an HTTPS redirect in the image. And we certainly don't today. Some of the example configs, sure. But those are just that: examples. Change them to suit your local needs. If anyone has redirect issues they should review:
This issue can be safely closed best as I can tell. |
hi, when i acces to my website without http / https before the domain name it automaticly redirect to https and i don't want it, how can i remove it ?
The text was updated successfully, but these errors were encountered: