Skip to content

Commit

Permalink
default values
Browse files Browse the repository at this point in the history
  • Loading branch information
petrsvihlik committed Nov 13, 2021
1 parent c86e147 commit 61fb232
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion WopiHost.Discovery/DiscoveryOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public class DiscoveryOptions

/// <summary>
/// Determines how often should the discovery file be fetched again.
/// The default value is 24 hours.
/// </summary>
public TimeSpan RefreshInterval { get; set; }
public TimeSpan RefreshInterval { get; set; } = TimeSpan.FromHours(24);
}
}
3 changes: 2 additions & 1 deletion WopiHost.Web/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"HostUrl": "http://rocky-ntb:5000",
"ClientUrl": "http://owaserver",
"Discovery": {
"NetZone": "InternalHttp"
"NetZone": "InternalHttp",
"RefreshInterval": "12:00:00"
}
},
"Logging": {
Expand Down

0 comments on commit 61fb232

Please sign in to comment.