about summary refs log tree commit diff
path: root/users/grfn/xanthous/server
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2021-11-13T14·33-0500
committergrfn <grfn@gws.fyi>2021-11-13T14·47+0000
commit3c33a2c75659416a7413e9c5a3c18a3397b0fd58 (patch)
treef4b00d575db6f5125d9d623e6e44848c040099fc /users/grfn/xanthous/server
parent33f29d081d17c496e2348075b430d8238e2998ea (diff)
fix(xanthous/server): Mount the key into the docker image r/3057
mount the host key in as a single-file volume, so the server can
actually read it.

Change-Id: I5fb58536717c91480d1f4610b6fb3258a36169e0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3864
Reviewed-by: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/grfn/xanthous/server')
-rw-r--r--users/grfn/xanthous/server/module.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/users/grfn/xanthous/server/module.nix b/users/grfn/xanthous/server/module.nix
index cbc10c014de5..73ac276caf4a 100644
--- a/users/grfn/xanthous/server/module.nix
+++ b/users/grfn/xanthous/server/module.nix
@@ -41,7 +41,8 @@ in {
         "${toString cfg.port}:22"
         "${toString cfg.metricsPort}:9000"
       ];
-      environment.SECRET_KEY_FILE = "/etc/secrets/xanthous-server-secret-key";
+      environment.SECRET_KEY_FILE = "/secret-key";
+      volumes = [ "/etc/secrets/xanthous-server-secret-key:/secret-key" ];
     };
   };
 }