WebConfig

Web configurations.

Members

Variables

accessLogToConsole
bool accessLogToConsole;

Boolean determining whether the access log should be redirected to the console.

addresses
WebAddress[] addresses;

An array of addresses the web application is accessible by.

allowFileRoute
bool allowFileRoute;

Boolean determining whether views can be accessed by their file name.

authenticateStaticFiles
bool authenticateStaticFiles;

Boolean determining whether authentication should run for static files or not.

customConfig
string[string] customConfig;

An associative array of custom configurations;

dbConnections
WebDbConnections dbConnections;

A collection of db connection configurations.

defaultHeaders
WebHeaders defaultHeaders;

The default headers the web application uses.

disableHeaderLoggingRoutes
string[] disableHeaderLoggingRoutes;

An array of routes that shouldn't have logging for headers.

disablePrivacyLogging
bool disablePrivacyLogging;

Configuration to disable privacy logging. When set to true, personal information etc. will be stored in the logging.

forceSSLUrl
string forceSSLUrl;

String of an url to redirect all connections that aren't ssl to.

globalRestrictedIPs
string[] globalRestrictedIPs;

An array of global restricted ip addresses.

homeRoute
string homeRoute;

The route that's mapped to the home page.

hostWhiteList
string[] hostWhiteList;

A list of hosts that the server accepts.

ipHeader
string ipHeader;

The http header that contains the client's ip. Useful when using reverse proxies.

maintenance
string maintenance;

A static web-page to display for maintenance. When specified the website will automatically be set to maintenance-mode.

maintenanceWhiteList
string[] maintenanceWhiteList;

An array of ips that can still access the site during maintenance.

mappedAuthKeys
string[string] mappedAuthKeys;

An associative array of mapped auth keys.

maxRequestHeaderSize
ulong maxRequestHeaderSize;

The maximum number of bytes a request header can be. Default is 8,192 bytes.

maxRequestSize
ulong maxRequestSize;

The maximum number of bytes a request can transfer. Defaults to 4,000,000 bytes.

mongoDb
WebMongoDb mongoDb;

Configurations for mongo db.

name
string name;

The name of the web application.

restrictedIPs
string[] restrictedIPs;

An array of restricted ip addresses.

sessionAliveTime
long sessionAliveTime;

The time sessions are stored in memory.

shouldCacheViews
bool shouldCacheViews;

Boolean determnining whether views can be cached or not.

specialRouteSplitter
string specialRouteSplitter;
Undocumented in source.
specializedRoutes
WebSpecialRoute[string] specializedRoutes;

Tn associative array of specialized routes.

sslCertificateFile
string sslCertificateFile;

Configuration for the ssl certificate file.

sslPrivateKeyFile
string sslPrivateKeyFile;

Configuration for the ssl private key file.

staticFileRoutes
string[] staticFileRoutes;

The routes that are mapped to static files.

viewOnly
bool viewOnly;

Boolean determining whethere there's only one view to use for routing. The view must be named __view.dd

webservices
WebService[] webservices;

Collection of webservices.

whiteListPaths
string[] whiteListPaths;

The paths to white-list for file-access/directory-access.

Meta