ocis: Login missing, theme.json and openid-configuration net::ERR_CONNECTION_REFUSED

Describe the bug

After setting up a binary installation the login portal never shows and the site stays blank.

theme.json and openid-configuration show as failed in network tab of browser

ocis

Steps to reproduce

Basic installation following https://owncloud.dev/ocis/getting-started/#binaries

Setup

.env

OCIS_BASE_DATA_PATH=/owncloud 
OCIS_INSECURE=false 
PROXY_HTTP_ADDR=0.0.0.0:9200 
OCIS_URL=https://localhost:9200 
PROXY_TLS=false 

config.yaml is unchanged since ocis init.

Using no .env files results in the same problem

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

Huzzah, success.

After a quick reconfiguration of my LXC (mounted a SMB instead of NFS) I can now say its working.

Guess the DATA_DIR env variable is at the same time misleading and doing what is says. I was under the impression this only affects the data (uploaded stuff) itself and not the whole data of OCIS. Of course this would stay consistent every time I remade the LXC and mounted the share again, leaving old data intact and not useable by new OCIS.

Now to get Authentik as IDP working.

Thanks @C0rby @Jeansy91 @micbar

Hey, I faced the same issue. Try adding proxy_set_header Origin $scheme://$server_name; to location /, otherwise it recognizes a mismatch between host and origin.

Maybe it helps to know that OCIS_URL always needs to point to the exact url and port which is reachable from the outside.

If the nginx runs on :443 than OCIS_URL should point to https://you-domain.tld