diff options
author | Alan Pearce | 2024-05-26 12:08:19 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-26 12:08:19 +0200 |
commit | 287cfec3d2479415bf3b7069702dbdb8c87b1826 (patch) | |
tree | 1ff9d4268c35a72cf0dcbb2b222436e4eb598ffa | |
parent | 547de640576c71bed54bc1ae3c9d9b224df9cc41 (diff) | |
download | website-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.toml | 4 | ||||
-rw-r--r-- | nix/default.nix | 1 |
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 = { |