about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-05-26 12:08:19 +0200
committerAlan Pearce2024-05-26 12:08:19 +0200
commit287cfec3d2479415bf3b7069702dbdb8c87b1826 (patch)
tree1ff9d4268c35a72cf0dcbb2b222436e4eb598ffa
parent547de640576c71bed54bc1ae3c9d9b224df9cc41 (diff)
downloadwebsite-287cfec3d2479415bf3b7069702dbdb8c87b1826.tar.lz
website-287cfec3d2479415bf3b7069702dbdb8c87b1826.tar.zst
website-287cfec3d2479415bf3b7069702dbdb8c87b1826.zip
pass config file via fly/docker instead of embedding in image
-rw-r--r--fly.toml4
-rw-r--r--nix/default.nix1
2 files changed, 4 insertions, 1 deletions
diff --git a/fly.toml b/fly.toml
index b4914d5..6e86e4a 100644
--- a/fly.toml
+++ b/fly.toml
@@ -14,6 +14,10 @@ primary_region = "ams"
   REDIRECT_OTHER_HOSTNAMES = "true"
   BASE_URL = "https://alanpearce.eu"
 
+  [[files]]
+    guest_path = "/config.toml"
+    local_path = "config.toml"
+
 [metrics]
   port = 9091
   path = "/metrics"
diff --git a/nix/default.nix b/nix/default.nix
index de427db..62caed6 100644
--- a/nix/default.nix
+++ b/nix/default.nix
@@ -11,7 +11,6 @@ let
       name = "registry.fly.io/alanpearce-eu";
       tag = fullSHA;
       contents = [
-        (pkgs.writeTextDir "config.toml" (builtins.readFile ./../config.toml))
         website
       ];
       config = {