nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
344 stars 117 forks source link

unable to upload fonts to managed instance #3779

Open yotamguttman opened 2 weeks ago

yotamguttman commented 2 weeks ago

when uploading a new font using the 'office' tab the GUI, under 'admin settings', it states that a variable should be amended in a Collabora Online's config file. I'm attaching a screenshot:

Screenshot from 2024-06-20 15-36-08

the problem I'm facing is, that since I am using a managed NC instance, provided by a 3rd party NC partner, I have no access to config files on the server.

hence, I propose to insert this variable as either a text box (into which I can paste this url) or a toggle that can switch between the default source or the alternative url. making it available in the graphical UI under the 'Office' tab, would allow users with managed instances to import their favourable typefaces on to their docs.

joshtrichards commented 1 week ago

Where/how is CODE installed?

If you happen to use the Built-in CODE (richdocumentscode) that value is already set so there's nothing to do.

I'm afraid that config value must get set on your CODE server, not within Nextcloud Office (richdocuments). Though #2169, which would ultimately result in making it possible for the CODE server to pull it's entire config remotely from Nextcloud Office, would in effect achieve this (at least if your CODE server is provisioned to pull a remote config from Nextcloud Office; the admin of your CODE deployment would still have to permit that).

yotamguttman commented 1 week ago

so it's a managed plan that offers a managed instance of Nextcloud, I think it's aio but not sure. can't tell because I have no access to anything beyond the gui settings. another work around would be adding a built-in fonts folder inside Nextcloud files, similar to the templates folder. I'm suggesting that because I messaged the provider about it and they replied that allowing the upload of user fonts would require a change in the config file of Nextcloud, which would have to be redone every time the instance is being updated and that's why they cannot offer this option. if that's true, I can imagine it can be a pain to have to do it repeatedly. if there was a simple folder accessible to the admin user, that would be the source of the account's fonts, it'd be very user friendly and get backed up even if NC is being updated

joshtrichards commented 1 week ago

That doesn't sound right. Updates don't override config files. And setting up the remote_font_config for a Collabora Online server that is going to be integrated with Nextcloud Server is fairly standard. It's why this feature already exists.

Perhaps they're confusing this with the other way of adding fonts, which requires updating the systemtemplate in CO?

Either way, the config change has to be done in Collabora Online to load fonts remotely. This app (richdocuments) is just a the bridge between a Nextcloud Server instance and a Collabora Online instance.

yotamguttman commented 1 week ago

maybe it's a misunderstanding. but I think that the main issue here, is that users with no access to the backend cannot use this feature. this is what I was referring to, I suppose I was suggesting to have this feature be entirely operable via the settings gui.

joshtrichards commented 1 week ago

If this was a parameter that could only be set via occ or config.php currently I'd agree with you, but this isn't a configuration parameter in Nextcloud Server or richdocuments. The parameter is in Collabora. We couldn't allow you to set it in the Nextcloud UI even if we wanted to.