I’m trying to theme OCIS and can’t for the life of me get it to use an external URL. In ocis.yaml I have the following:
https://notmyrealdomain.com/ocis/theme.json loads just fine for me in a web browser and the theme.json file was taken directly from the default OCIS theme.json. I tried also using the WEB_ASSET_PATH and WEB_UI_THEME_PATH env variables with identical results. Not sure how to debug this further or sort out why the remote theme isn’t loading.
hey @walt could you please check
a) in your browser console if any CORS issues are shown? something about the browser refusing to load the theme.json?
b) in your browser dev tools “network” tab if the file is requested at all? If yes, any error?
Browser console shows the following error:
Failed to load theme 'https://ocis.redacted.com/ocis/theme.json' is not a valid json file, using default theme.
(anonymous) @ web-runtime-f0fd7d61.js:1
Seems that OCIS is reading
theme_path as we configured, but it’s using
OCIS_URL as the root URL instead of
theme_server. We need to get OCIS using https://notmyrealdomain.com/ocis/theme.json for the theme, or somehow expose a custom theme.json under our OCIS server at https://ocis.redacted.com.
@kulmann Any ideas on how to get this working? We’ve tried what seems like a million things on this and still can’t get our own theme.json file to pick up in OCIS. Is there a local path on the OCIS server itself we can drop theme.json and have it used?
@walt I’m in the same boat, did you ever figure this out?
Nope - have been unable to find a solution so far
We built our own executable from source code and were able to customize the default theme.json and have it affect everything. That’s more of a workaround than a solution.
@walt can you check if that helps?
We did try both WEB_UI_THEME_SERVER and WEB_UI_THEME_PATH back in April with no success. There seems to be no way to proxy the theme.json without a whole docker setup.
the env vars are the same in docker and vanilla installation, can you point me to a repo to have a look?
We used the public installer from https://download.owncloud.com/ocis/ocis/stable/3.0.0/ocis-3.0.0-linux-amd64 - didn’t use a repo and did nothing non-standard with the setup
strange, have you retried? i tested it and it worked, maybe i missed something or understood wrong!?
We have not retried since 3.0.0. Can give it another shot in the next few days.
I am getting the same error on version 4.0.0+f5f11e0bd and web client version 8.0.0-alpha.4, theme_server is replaced with OCIS_URL. Running on Docker