opencloud icon indicating copy to clipboard operation
opencloud copied to clipboard

Accept HTTP request

Open Cromoray opened this issue 7 months ago • 9 comments

Hi i have a home server where i would like to install opencloud. I followed the procedure for docker and configured my caddy and cloudflare to have a domain, but i cannot connect to the instance neither i use local ip of the server neither i use the domain i reserved because it keep telling me that doesn't accept http request. Is there a way to enable http requests?

Cromoray avatar May 25 '25 15:05 Cromoray

Following

ProgramGeek02 avatar May 26 '25 07:05 ProgramGeek02

With http you mean without TLS?

This is technically possible but configuration forbids it.

This is because openCloud use’s OpenIDConnect. It spec forbids unencrypted connections because you could steal access tokens very easily.

micbar avatar May 26 '25 18:05 micbar

Ok, i wanted to use that because my traffic is encrypted by cloudflare and proxies behind caddy and therefore there i can use the https endpoint cloudflare give me when I try to connect Opencloud tells me that I'm trying to use http instead of https

Cromoray avatar May 26 '25 18:05 Cromoray

Okay. That is how 90% of openClouds are deployed. Out public examples are exactly doing that. SSL termination at the proxy.

Please make sure that your OC_URL is set to the public URL from outside .

micbar avatar May 27 '25 05:05 micbar

yes but in your example you ask for 3 more services to install: collabora, traefic and wopi. I would like to have a light installation

ProgramGeek02 avatar May 27 '25 06:05 ProgramGeek02

You can drop those features, but you need a reverse proxy. That means use traefik or your own proxy. This proxy can terminate SSL, set PROXY_TLS=false in openCloud. But OC_DOMAIN should always be the publicly reachable domain.

The public domain needs SSL with a valid certificate.

micbar avatar May 27 '25 19:05 micbar

Posting this for anyone future problem solving... For those hosting opencloud behind an existing traefik (which is terminating the SSL on the public URL), opencloud env option "PROXY_TLS=false" makes it finally work. This topic was the only time (from hours of searching I saw this flag mentioned)

kja999 avatar Oct 10 '25 14:10 kja999

Hi ! same observation as @kja999 , I suggest to add this environnement variable in this page: https://docs.opencloud.eu/docs/admin/getting-started/container/docker-compose/external-proxy

fredix avatar Nov 15 '25 00:11 fredix

opencloud env option "PROXY_TLS=false" makes it finally work.

Is that setting missing in the yaml file for the external proxy setup in the docker compose?

micbar avatar Nov 15 '25 07:11 micbar