aboutsummaryrefslogtreecommitdiff
path: root/fly
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-07-12 11:54:48 -0400
committerXe Iaso <me@xeiaso.net>2024-07-12 11:54:48 -0400
commiteaf0de625400595ee1f733890a4cd11461850e71 (patch)
tree681ce960c8b101a180f6ce3ae54b7a9c11608aee /fly
parent5e14c1d40b93d3844a980e5104b3a23bb4ab5db8 (diff)
downloadxesite-eaf0de625400595ee1f733890a4cd11461850e71.tar.xz
xesite-eaf0de625400595ee1f733890a4cd11461850e71.zip
fly/xesite: try running with bucket statics
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'fly')
-rw-r--r--fly/xesite/fly.dev.toml4
-rw-r--r--fly/xesite/fly.toml6
2 files changed, 10 insertions, 0 deletions
diff --git a/fly/xesite/fly.dev.toml b/fly/xesite/fly.dev.toml
index 8198caa..5d932c3 100644
--- a/fly/xesite/fly.dev.toml
+++ b/fly/xesite/fly.dev.toml
@@ -23,6 +23,7 @@ auto_extend_size_limit = "10GB"
url_prefix = "/"
guest_path = "/"
tigris_bucket = "xesite-dev"
+index_document = "index.html"
[build]
image = "ghcr.io/xe/site/bin:earthly"
@@ -38,6 +39,9 @@ INTERNAL_API_BIND = ":80"
internal_port = 3000
processes = ["app"]
protocol = "tcp"
+auto_stop_machines = true
+auto_start_machines = true
+min_machines_running = 0
[services.concurrency]
hard_limit = 300
diff --git a/fly/xesite/fly.toml b/fly/xesite/fly.toml
index 9bab818..66bfd02 100644
--- a/fly/xesite/fly.toml
+++ b/fly/xesite/fly.toml
@@ -17,6 +17,12 @@ auto_extend_size_threshold = 80
auto_extend_size_increment = "1GB"
auto_extend_size_limit = "10GB"
+[[statics]]
+url_prefix = "/"
+guest_path = "/"
+tigris_bucket = "xesite"
+index_document = "index.html"
+
[build]
image = "ghcr.io/xe/site/bin:earthly"