diff --git a/WopiHost.Discovery/DiscoveryOptions.cs b/WopiHost.Discovery/DiscoveryOptions.cs index d015e35..cf259f3 100644 --- a/WopiHost.Discovery/DiscoveryOptions.cs +++ b/WopiHost.Discovery/DiscoveryOptions.cs @@ -14,7 +14,8 @@ public class DiscoveryOptions /// /// Determines how often should the discovery file be fetched again. + /// The default value is 24 hours. /// - public TimeSpan RefreshInterval { get; set; } + public TimeSpan RefreshInterval { get; set; } = TimeSpan.FromHours(24); } } diff --git a/WopiHost.Web/appsettings.json b/WopiHost.Web/appsettings.json index 9538c53..796fd87 100644 --- a/WopiHost.Web/appsettings.json +++ b/WopiHost.Web/appsettings.json @@ -6,7 +6,8 @@ "HostUrl": "http://rocky-ntb:5000", "ClientUrl": "http://owaserver", "Discovery": { - "NetZone": "InternalHttp" + "NetZone": "InternalHttp", + "RefreshInterval": "12:00:00" } }, "Logging": {