ConfigurationService Class

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Service class for getting configuration settings.

public static class ConfigurationService
Inheritance:
System.Object → ConfigurationService

Properties

ActiveDirectoryDomain Gets the name of the Active Directory domain or server to authenticate against (weavy.active-directory-domain).
ActiveDirectoryPassword Gets the password to use when authenticating users against the active directory (weavy.active-directory-password).
ActiveDirectoryUsername Gets the username to use when authenticating users against the active directory (weavy.active-directory-username).
ApplicationName Gets the name of the application, e.g. Weavy (weavy.application-name).
ApplicationUrl Gets the absolute url to the installation, e.g. http://intranet.weavy.com or https://www.weavy.com/intranet. Used for links in outgoing emails etc. (weavy.application-url).
AppSettings Gets the application's settings the appSettings element in the configuration file.
AuthenticationEndpoint Gets the full url to an external authentication endpoint. Must start with https:// (weavy.authentication-endpoint).
BlobCache Gets a value indicating if we should cache blobs on local disk or serve them directly from the blob provider (weavy.blob-cache).
BlobProvider Gets the configured blob provider (weavy.blob-provider).
BlobProviders Gets the configured blob providers (default to Box,Dropbox,Google Drive,OneDrive).
BlobSize Gets the maximum accepted size of uploaded files (in bytes).
BlobText Gets a value indicating if we should extract text for fulltext indexing from uploaded blobs (weavy.blob-text).
BlobThumbnails Gets a value indicating if we should create thumbnail images for uploaded blobs (weavy.blob-thumbnails).
BlobWhitelist A comma-separated list of unique file type specifiers that can be uploaded to blob storage (weavy.blob-whitelist). If not specified all file types are accepted.
CacheProvider Gets the configured cache provider (weavy.cache-provider).
CorsOrigins Gets the configured cors origins (weavy.cors-origins).
Daemons Gets a value indicating if daemons are enabled weavy.daemons.
FormsAuthentication Gets a value indicating whether forms authentication ia enabled.
Hsts Gets a value indicating whether HTTP Strict Transport Security (HSTS) is enabled (weavy.hsts).
HtmlComments Gets a value indicating whether comments should be edited in html or plain text.
HtmlPosts Gets a value indicating whether posts should be edited in html or plain text.
Https Gets a value indicating if HTTPS is required (weavy.https).
Languages Gets the list of supported languages (
weavy.languages
).
LicensePublicKey Gets the (base64 encoded) public key used to verify that the license signature is valid (weavy.license-public-key).
LicenseUrl Gets the url to the licensing server (
weavy.license-url
).
LogLevel Gets the configured logging level.
NotificationProvider Gets the configured notification provider (weavy.notification-provider).
PasswordLength Gets the minimum required password length (weavy.password-length).
PasswordRequiresDigit Gets a value indicating whether passwords must contain at least one digit (0-9) (weavy.password-requires-digit).
PasswordRequiresLower Gets a value indicating whether passwords must contain at least one lower case letter (a-z) (weavy.password-requires-lower).
PasswordRequiresSpecial Gets a value indicating whether passwords must at least one special character (non letter or digit) (weavy.password-requires-special).
PasswordRequiresUpper Gets a value indicating whether passwords must contain at least one upper case letter (A-Z) (weavy.password-requires-upper).
PluginAssemblies Gets names of plugin assemblies (weavy.plugin-assemblies).
ProfileProvider Gets the configured profile provider (weavy.profile-provider).
Scrape Gets a value indicating if link scraping for embeds is enabled. (weavy.scrape).
SmtpDefaultCredentials Gets a value indicating whether default user credentials should be used to access the SMTP server. When this property is set, username and password will be ignored (weavy.smtp-default-credentials).
SmtpFrom Gets the email address from which outgoing emails should be sent (weavy.smtp-from).
SmtpPassword Gets the password to use for authentication against the SMTP server (weavy.smtp-password).
SmtpPort Gets the port used for SMTP transactions, default value is 25 (weavy.smtp-port).
SmtpServer Gets the name or IP address of the host used for SMTP transactions (weavy.smtp-server).
SmtpSsl Gets a value indicating whether to use Secure Sockets Layer (SSL) to encrypt the connection with the SMTP server (weavy.smtp-ssl).
SmtpUsername Gets the username to use for authentication against the SMTP server (weavy.smtp-username).
Source Gets the source of the deployment package (weavy.source).
TeamsAuthenticationUrl Gets a value for the Teams Online default authentication url.
TeamsMeetings Gets a value indicating whether Teams Online meetings is available.
WindowsAuthentication Gets a value indicating whether the application is configured to use windows authentication.
ZoomAuthenticationUrl Gets a value for the Zoom default authentication url.
ZoomMeetings Gets a value indicating whether Zoom meetings is available.
ZoomProxyUrl Gets the url to the licensing server (
weavy.license-url
).

Methods

AppSetting(string) Get the specified app setting from the appSettings element in the configuration file.
ConnectionString(string) Get the specified connection string from the connectionStrings element in the configuration file.
GetSection(string) Retrieves the specified configuration section from the appplication's configuration file.