diff options
author | Adam Williamson <awilliam@redhat.com> | 2014-12-30 12:03:07 -0800 |
---|---|---|
committer | Adam Williamson <awilliam@redhat.com> | 2015-01-05 15:24:23 -0800 |
commit | bb79aac78a4c94c963c1995c5306be2acac64263 (patch) | |
tree | 80e6ceda42dba2a0cb326879b61d81d9d7815e99 /config | |
parent | c0ad6e818b118a22c5312e6ded97ebb0eeee5cda (diff) | |
download | nextcloud-server-bb79aac78a4c94c963c1995c5306be2acac64263.tar.gz nextcloud-server-bb79aac78a4c94c963c1995c5306be2acac64263.zip |
allow css/js asset directory to be relocated (#13053)
This allows the directory where CSS/JS asset collections are
written to be changed, in case SERVERROOT is not writeable. Note
it does *not* allow the expected URL to be changed: whatever
directory is used, the server must be configured to serve it
at WEBROOT/assets. It may be possible to add another config
parameter to allow the admin to specify a custom asset URL,
but I thought I'd keep the first implementation simple.
Diffstat (limited to 'config')
-rw-r--r-- | config/config.sample.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php index 35e3f6ce5f1..91428bdc3e4 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -811,6 +811,16 @@ $CONFIG = array( 'asset-pipeline.enabled' => false, /** + * The parent of the directory where css and js assets will be stored if + * piplelining is enabled; this defaults to the ownCloud directory. The assets + * will be stored in a subdirectory of this directory named 'assets'. The + * server *must* be configured to serve that directory as $WEBROOT/assets. + * You will only likely need to change this if the main ownCloud directory + * is not writeable by the web server in your configuration. + */ +'assetdirectory' => '/var/www/owncloud', + +/** * Where ``mount.json`` file should be stored, defaults to ``data/mount.json`` */ 'mount_file' => 'data/mount.json', |