Pulumi code for my server setup
0
fork

Configure Feed

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

add knot motd

+16 -4
+15 -3
services/haring/atproto/knot.ts
··· 1 1 import { DnsRecord } from "@pulumi/cloudflare"; 2 + import { remote } from "@pulumi/command"; 2 3 import { Image } from "@pulumi/docker-build"; 4 + import { asset } from "@pulumi/pulumi"; 3 5 import { getEnv } from "~lib/env"; 4 - import { confMount, nvmeMount } from "~lib/service/mounts"; 5 - import { ContainerService } from "~lib/service/service"; 6 + import { confMount, mount, nvmeMount } from "~lib/service/mounts"; 7 + import { ContainerService, defaultConnection } from "~lib/service/service"; 6 8 import { getLatestCommit } from "~lib/util"; 7 9 8 10 const knotImage = new Image( ··· 32 34 }, 33 35 ); 34 36 37 + export const knotMotd = new remote.CopyToRemote("knot-motd", { 38 + connection: defaultConnection, 39 + source: new asset.StringAsset("/人◕ ‿‿ ◕人\ 📝\n"), 40 + remotePath: "/home/bas/docker/knot/motd", 41 + }); 42 + 35 43 export const knotService = new ContainerService("knot", { 36 44 localImage: knotImage.digest, 37 45 servicePort: 5555, 38 46 ports: [22], 39 - mounts: [confMount("knot", "/app"), nvmeMount("knot", "/home/git/repositories")], 47 + mounts: [ 48 + confMount("knot", "/app"), 49 + mount(knotMotd.remotePath, "/home/git/motd", { kind: "file" }), 50 + nvmeMount("knot", "/home/git/repositories"), 51 + ], 40 52 volumes: [{ volumeName: "knot-keys", containerPath: "/etc/ssh/keys" }], 41 53 envs: { 42 54 KNOT_SERVER_HOSTNAME: "knot.bas.sh",
+1 -1
services/haring/networking/unbound/unbound.ts
··· 29 29 }); 30 30 }); 31 31 32 - const unboundConfig = new remote.CopyToRemote( 32 + export const unboundConfig = new remote.CopyToRemote( 33 33 "unbound-config", 34 34 { 35 35 connection: defaultConnection,