Class UrlPreviewOptions
URL previews: the server fetches pages that users link to and returns their title, description and image, configuration section Section.
Implements
Inherited Members
Namespace: Uniform.Matrix.Server.Configuration
Assembly: Uniform.Matrix.Server.dll
Syntax
public sealed record UrlPreviewOptions : IEquatable<UrlPreviewOptions>
Remarks
Off by default: fetching tells the linked site that someone on this server posted the link, and in encrypted rooms it shows the server what was linked.
Fields
| Edit this page View SourceSection
Configuration section name.
Declaration
public const string Section = "UrlPreviews"
Field Value
| Type | Description |
|---|---|
| string |
Properties
| Edit this page View SourceAllowPrivateAddresses
Whether pages at private, loopback and link-local addresses may be previewed; off, so accounts cannot make the server reach machines inside its network.
Declaration
public bool AllowPrivateAddresses { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CacheDuration
How long a preview is reused for the same address.
Declaration
public TimeSpan CacheDuration { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
Enabled
Whether the server makes previews.
Declaration
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MaxSize
Most bytes read of a page or its image.
Declaration
public long MaxSize { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
Timeout
How long to wait for a page and its image.
Declaration
public TimeSpan Timeout { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |