mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
chore: Update the types hopefully
This commit is contained in:
@@ -196,16 +196,13 @@ export class HostSystemStartOs implements Effects {
|
||||
T.Effects["getServicePortForward"]
|
||||
>
|
||||
}
|
||||
getSslCertificate(
|
||||
...[packageId, algorithm]: Parameters<T.Effects["getSslCertificate"]>
|
||||
) {
|
||||
return this.rpcRound("getSslCertificate", {
|
||||
packageId,
|
||||
algorithm,
|
||||
}) as ReturnType<T.Effects["getSslCertificate"]>
|
||||
getSslCertificate(options: Parameters<T.Effects["getSslCertificate"]>[0]) {
|
||||
return this.rpcRound("getSslCertificate", options) as ReturnType<
|
||||
T.Effects["getSslCertificate"]
|
||||
>
|
||||
}
|
||||
getSslKey(...[packageId, algorithm]: Parameters<T.Effects["getSslKey"]>) {
|
||||
return this.rpcRound("getSslKey", { packageId, algorithm }) as ReturnType<
|
||||
getSslKey(options: Parameters<T.Effects["getSslKey"]>[0]) {
|
||||
return this.rpcRound("getSslKey", options) as ReturnType<
|
||||
T.Effects["getSslKey"]
|
||||
>
|
||||
}
|
||||
|
||||
@@ -33,11 +33,16 @@ export class DockerProcedureContainer {
|
||||
await overlay.mount({ type: "assets", id: mount }, mounts[mount])
|
||||
} else if (volumeMount.type === "certificate") {
|
||||
volumeMount
|
||||
const certChain = await effects.getSslCertificate(
|
||||
null,
|
||||
volumeMount["interface-id"],
|
||||
)
|
||||
const key = await effects.getSslKey(null, volumeMount["interface-id"])
|
||||
const certChain = await effects.getSslCertificate({
|
||||
packageId: null,
|
||||
hostId: volumeMount["interface-id"],
|
||||
algorithm: null,
|
||||
})
|
||||
const key = await effects.getSslKey({
|
||||
packageId: null,
|
||||
hostId: volumeMount["interface-id"],
|
||||
algorithm: null,
|
||||
})
|
||||
await fs.writeFile(
|
||||
`${path}/${volumeMount["interface-id"]}.cert.pem`,
|
||||
certChain.join("\n"),
|
||||
|
||||
@@ -186,6 +186,7 @@ export class MainLoop {
|
||||
|
||||
if ("result" in result) {
|
||||
await effects.setHealth({
|
||||
message: null,
|
||||
name: healthId,
|
||||
status: "passing",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user