The serverStorage configuration section configures the Loupe Server storage (either to disk or Azure blob storage). The following options can be specified:
Option | Description | Default Value | Required |
---|---|---|---|
dataPath | The full path to the data directory for shared data when using disk storage. | "" | false |
connectionString |
The connection string for Azure Storage. If set, Azure storage will be used instead of a file system. |
"" | false |
containerName |
The container name for Azure Storage. If a ConnectionString is specified, a ContainerName must also be specified. |
"" | false |
The Server.Config file is an XML formatted file with a section for email.
Server.Config |
Copy Code
|
---|---|
<?xml version="1.0" encoding="utf-8"?> <gibraltar> <serverStorage dataPath="C:\Data\Loupe" /> </gibraltar> |
To set the configuration through environment variables (like for hosting in an Azure App Service), the configuration items use the format:
Loupe__Server__Storage__{Option}
For example, to set the data path use Loupe__Server__Storage__DataPath