zuazo / owncloud-cookbook

Chef cookbook to install and configure ownCloud.

Home Page:https://supermarket.chef.io/cookbooks/owncloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add trusted_domains config parameter

LEDfan opened this issue · comments

It would be really great to have a config parameter (like data_dir) to add trusted_domains.
See https://github.com/owncloud/core/blob/master/config/config.sample.php#L63

The difficulty for implementing this is that we are currently using the Automatic Configuration and avoiding templating the config.php due to the automatically generated salt.

This automatic configuration generates the config.php and creates the admin user. So, currently, we need to reimplement the OC_Setup::install logic inside this cookbook to be able to change such settings. These, of course, can cause other problems besides being more difficult to maintain.

The problem is that we cannot set the trusted_domains configuration value from the automatic configuration. Perhaps the simplest solution is to ask ownCloud to support this in the AUTCONFIG before attempting more complicated solutions.

Actually, the trusted_domains config parameter is automatically generated based on node['owncloud']['server_name'] and node['owncloud']['server_aliases'] values. This is currently implemented on master branch, but I'll release a new cookbook version on a few days.

@raulr great :) I saw the new release, so I'll update my submodules.