Pulumi code for my server setup
0
fork

Configure Feed

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

update unbound config

+12 -9
+9 -1
services/haring/networking/unbound/cachedb.conf
··· 7 7 prefetch: yes 8 8 msg-cache-size: 64m 9 9 rrset-cache-size: 128m 10 + log-time-ascii: yes 11 + log-queries: yes 12 + log-replies: yes 13 + extended-statistics: yes 14 + 15 + remote-control: 16 + control-enable: yes 17 + control-use-cert: no 10 18 11 19 cachedb: 12 20 backend: "redis" 13 - redis-server-host: valkey 21 + redis-server-host: valkey-unbound 14 22 redis-server-port: 6379 15 23 redis-expire-records: no
+3 -8
services/haring/networking/unbound/unbound.ts
··· 1 1 import { remote } from "@pulumi/command"; 2 - import { asset, interpolate } from "@pulumi/pulumi"; 2 + import { asset } from "@pulumi/pulumi"; 3 3 import path from "path"; 4 - import { getEnv } from "~lib/env"; 5 4 import { confMount } from "~lib/service/mounts"; 6 5 import { defaultNetwork } from "~lib/service/networks"; 7 6 import { ContainerService, defaultConnection } from "~lib/service/service"; ··· 10 9 11 10 const valkeyUnboundService = new ContainerService("valkey-unbound", { 12 11 image: "valkey/valkey", 13 - command: [ 14 - interpolate`--requirepass ${getEnv("VALKEY_PASSWORD")}`, 15 - "--save 300 1", 16 - "--loglevel warning", 17 - ], 12 + command: ["--save 300 1"], 18 13 volumes: [{ volumeName: "valkey-unbound", containerPath: "/data" }], 19 14 }); 20 15 21 16 const unboundConfig = new remote.CopyToRemote("unbound-config", { 22 17 connection: defaultConnection, 23 18 source: new asset.FileAsset(path.join(import.meta.dirname, "cachedb.conf")), 24 - remotePath: "/home/bas/docker/unbound/cachedb.conf", 19 + remotePath: "/home/bas/docker/unbound/custom.conf.d/cachedb.conf", 25 20 }); 26 21 27 22 export const UNBOUND_ADDRESS = "172.18.1.1";