You're browsing the documentation for an old version of SupportPal. Consider upgrading to the latest version.
Changing File Storage Path
By default, SupportPal uses file-based storage in the storage/ directory.
Moving the storage/ directory
It is possible to move the storage/ directory outside of the web root.
-
Recursively move the
storage/directory to the intended destination. For example:mkdir -p /sp-storage mv /var/www/html/storage /sp-storage - Create a
.envfile in the SupportPal installation directory -
Specify an environment variable:
STORAGE_PATH=/sp-storage
Using Amazon S3
By default application data is stored locally in the storage/app/ directory within your installation
directory. Some application data can be stored in the cloud.
If you would like to configure an Amazon S3 filesystem, create or update /config/production/filesystems.php as below:
Amazon S3 /config/production/filesystems.php
Collapse
<?php
return [
'default' => 's3',
'disks' => [
's3' => [
'driver' => 's3',
'key' => 'your-key',
'secret' => 'your-secret',
'region' => 'your-region',
'bucket' => 'your-bucket',
],
],
];
If you would like to use a S3-compatible service such as Minio, you may need to add endpoint and use_path_style_endpoint to the configuration. Create or update /config/production/filesystems.php as below:
Minio /config/production/filesystems.php
Collapse
<?php
return [
'default' => 's3',
'disks' => [
's3' => [
'driver' => 's3',
'key' => 'your-key',
'secret' => 'your-secret',
'region' => 'your-region',
'bucket' => 'your-bucket',
'endpoint' => 'http://localhost:9600/',
'use_path_style_endpoint' => true,
],
],
];