aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-02-26 15:03:52 -0500
committerXe Iaso <me@xeiaso.net>2024-02-26 15:03:52 -0500
commit676e42028f7c2bd9a91de0a0477167b33a80670c (patch)
tree3fc01f3a1747cdf54b1f11b4a1f25ce3b55f15ef
parente1556f80d2e015171b97270d029f09b0867c4b82 (diff)
downloadx-676e42028f7c2bd9a91de0a0477167b33a80670c.tar.xz
x-676e42028f7c2bd9a91de0a0477167b33a80670c.zip
enable tigris statics
Signed-off-by: Xe Iaso <me@xeiaso.net>
-rw-r--r--cmd/xedn/cors.json10
-rw-r--r--cmd/xedn/fly.toml10
2 files changed, 15 insertions, 5 deletions
diff --git a/cmd/xedn/cors.json b/cmd/xedn/cors.json
new file mode 100644
index 0000000..df55bb8
--- /dev/null
+++ b/cmd/xedn/cors.json
@@ -0,0 +1,10 @@
+{
+ "CORSRules": [
+ {
+ "AllowedOrigins": ["*"],
+ "AllowedMethods": ["GET", "HEAD"],
+ "AllowedHeaders": ["*"],
+ "MaxAgeSeconds": 3000
+ }
+ ]
+}
diff --git a/cmd/xedn/fly.toml b/cmd/xedn/fly.toml
index e6cceda..dac47b6 100644
--- a/cmd/xedn/fly.toml
+++ b/cmd/xedn/fly.toml
@@ -23,11 +23,11 @@ auto_extend_size_threshold = 80
auto_extend_size_increment = "1GB"
auto_extend_size_limit = "100GB"
-#[[statics]]
-#url_prefix = "/file/christine-static"
-#guest_path = "/unused"
-#tigris_bucket = "xedn"
-#
+[[statics]]
+url_prefix = "/file/christine-static"
+guest_path = "/"
+tigris_bucket = "xedn"
+
[[services]]
protocol = "tcp"
internal_port = 8080