Class Settings
This class holds settings for DuetWebServer
Inherited Members
Namespace: DuetWebServer
Assembly: DuetWebServer.dll
Syntax
public sealed class Settings
Properties
DefaultWebDirectory
Default directory to serve web content from
Declaration
public string DefaultWebDirectory { get; set; }
Property Value
Type | Description |
---|---|
string |
KeepAliveInterval
Keep-alive interval for WebSocket connections (in s)
Declaration
public int KeepAliveInterval { get; set; }
Property Value
Type | Description |
---|---|
int |
MaxAge
Maximum age of cached resources before they must be refreshed (in s)
Declaration
public int MaxAge { get; set; }
Property Value
Type | Description |
---|---|
int |
Remarks
The index file is never cached to allow browsers to detect changes after updates
ModelRetryDelay
Time to wait before attempting to subscribe to the DSF OM again (in ms)
Declaration
public int ModelRetryDelay { get; set; }
Property Value
Type | Description |
---|---|
int |
OverrideWebDirectory
Override web directory from directories.web with a custom path
Declaration
public string? OverrideWebDirectory { get; set; }
Property Value
Type | Description |
---|---|
string |
OverrideWebPassword
Override configured machine password
Declaration
public string? OverrideWebPassword { get; set; }
Property Value
Type | Description |
---|---|
string |
SessionTimeout
Timeout for web sessions (in ms)
Declaration
public int SessionTimeout { get; set; }
Property Value
Type | Description |
---|---|
int |
SocketPath
Full filename of the DSF IPC socket to use
Declaration
public string SocketPath { get; set; }
Property Value
Type | Description |
---|---|
string |
StartErrorFile
File holding the last known start-up error of DCS in case it failed to start
Declaration
public string StartErrorFile { get; set; }
Property Value
Type | Description |
---|---|
string |
UseStaticFiles
Provide static settings from 0:/www
Declaration
public bool UseStaticFiles { get; set; }
Property Value
Type | Description |
---|---|
bool |
WebSocketBufferSize
Buffer size for custom WebSocket connections
Declaration
public int WebSocketBufferSize { get; set; }
Property Value
Type | Description |
---|---|
int |