Class ServerStorageOptions
Local storage of the homeserver, configuration section Section.
Inheritance
ServerStorageOptions
Assembly: Uniform.Matrix.Server.dll
public sealed record ServerStorageOptions : IEquatable<ServerStorageOptions>
Fields
|
Edit this page
View Source
Configuration section name.
Declaration
public const string Section = "Storage"
Field Value
Properties
|
Edit this page
View Source
Root directory; when unset, the application's data directory, e.g. ~/.local/share/uniform-matrix-server-host.
Declaration
public string? DataDirectory { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public string DatabaseFileName { get; set; }
Property Value
|
Edit this page
View Source
Directory of the session logs anywhere, e.g. /var/log/uniform-chat-server for a system service; when unset, LogDirectoryName inside the data directory.
Declaration
public string? LogDirectory { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public string LogDirectoryName { get; set; }
Property Value
|
Edit this page
View Source
Session log files to keep; older ones are deleted at start.
Declaration
public int LogFilesKept { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public string MediaDirectoryName { get; set; }
Property Value
Methods
|
Edit this page
View Source
Return DataDirectory, or the data directory of applicationName when unset.
Declaration
public string ResolveDataDirectory(string applicationName)
Parameters
| Type |
Name |
Description |
| string |
applicationName |
|
Returns
|
Edit this page
View Source
Declaration
public string ResolveLogDirectory(string applicationName)
Parameters
| Type |
Name |
Description |
| string |
applicationName |
|
Returns
Implements