Pulumi code for my server setup
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

use default command connections for remote commands

+8 -5
+8 -5
lib/service/service.ts
··· 11 11 import { haringDockerProvider } from "./providers"; 12 12 import { MountOpts } from "./mounts"; 13 13 14 - const defaultConnection: input.remote.ConnectionArgs = { 14 + const defaultConnection = { 15 15 host: getEnv("CONNECTION_HOST"), 16 16 user: getEnv("CONNECTION_USER"), 17 17 // password: getEnv("CONNECTION.PASSWORD"), 18 - }; 18 + } satisfies input.remote.ConnectionArgs; 19 19 20 20 type Env = string | number | boolean; 21 21 ··· 284 284 args: command.local.RunArgs, 285 285 opts?: pulumi.InvokeOptions, 286 286 ): Promise<command.local.RunResult> { 287 - const newArgs: command.local.RunArgs = { 287 + const newArgs = { 288 288 ...args, 289 - interpreter: ["/usr/bin/ssh", getEnv("CONNECTION_HOST")], 290 - }; 289 + interpreter: [ 290 + "/usr/bin/ssh", 291 + `${defaultConnection.user}@${defaultConnection.host}`, 292 + ], 293 + } satisfies command.local.RunArgs; 291 294 292 295 return command.local.run(newArgs, { 293 296 ...opts,