diff --git a/src/Tgstation.Server.Host/Controllers/DreamDaemonController.cs b/src/Tgstation.Server.Host/Controllers/DreamDaemonController.cs
index 346a65d7c2..38d443ae52 100644
--- a/src/Tgstation.Server.Host/Controllers/DreamDaemonController.cs
+++ b/src/Tgstation.Server.Host/Controllers/DreamDaemonController.cs
@@ -132,6 +132,7 @@ namespace Tgstation.Server.Host.Controllers
result.SoftRestart = rstate == RebootState.Restart;
result.SoftShutdown = rstate == RebootState.Shutdown;
result.StartupTimeout = settings.StartupTimeout;
+ result.HeartbeatSeconds = settings.HeartbeatSeconds;
}
if (revision)
@@ -170,7 +171,7 @@ namespace Tgstation.Server.Host.Controllers
/// Settings applied successfully.
/// Instance no longer available.
[HttpPost]
- [TgsAuthorize(DreamDaemonRights.SetAutoStart | DreamDaemonRights.SetPorts | DreamDaemonRights.SetSecurity | DreamDaemonRights.SetWebClient | DreamDaemonRights.SoftRestart | DreamDaemonRights.SoftShutdown | DreamDaemonRights.Start | DreamDaemonRights.SetStartupTimeout)]
+ [TgsAuthorize(DreamDaemonRights.SetAutoStart | DreamDaemonRights.SetPorts | DreamDaemonRights.SetSecurity | DreamDaemonRights.SetWebClient | DreamDaemonRights.SoftRestart | DreamDaemonRights.SoftShutdown | DreamDaemonRights.Start | DreamDaemonRights.SetStartupTimeout | DreamDaemonRights.SetHeartbeatInterval)]
[ProducesResponseType(typeof(DreamDaemon), 200)]
[ProducesResponseType(410)]
#pragma warning disable CA1502 // TODO: Decomplexify
@@ -219,7 +220,8 @@ namespace Tgstation.Server.Host.Controllers
|| CheckModified(x => x.SecurityLevel, DreamDaemonRights.SetSecurity)
|| CheckModified(x => x.SoftRestart, DreamDaemonRights.SoftRestart)
|| CheckModified(x => x.SoftShutdown, DreamDaemonRights.SoftShutdown)
- || CheckModified(x => x.StartupTimeout, DreamDaemonRights.SetStartupTimeout))
+ || CheckModified(x => x.StartupTimeout, DreamDaemonRights.SetStartupTimeout)
+ || CheckModified(x => x.HeartbeatSeconds, DreamDaemonRights.SetHeartbeatInterval))
return Forbid();
if (current.PrimaryPort == current.SecondaryPort)
diff --git a/src/Tgstation.Server.Host/Controllers/InstanceController.cs b/src/Tgstation.Server.Host/Controllers/InstanceController.cs
index 44934bb3c9..36171ac020 100644
--- a/src/Tgstation.Server.Host/Controllers/InstanceController.cs
+++ b/src/Tgstation.Server.Host/Controllers/InstanceController.cs
@@ -237,7 +237,8 @@ namespace Tgstation.Server.Host.Controllers
SecurityLevel = DreamDaemonSecurity.Safe,
SoftRestart = false,
SoftShutdown = false,
- StartupTimeout = 20
+ StartupTimeout = 20,
+ HeartbeatSeconds = 60
},
DreamMakerSettings = new DreamMakerSettings
{