From bf7a8d9a3445da462a184297726944ef8e2dc748 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 6 Mar 2026 00:48:12 +0100 Subject: [PATCH] dont polute store_app --- nix/image/nginx.conf | 10 ++++++++++ src/cloud.rs | 5 +---- src/mapping.rs | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/nix/image/nginx.conf b/nix/image/nginx.conf index 3de81ca..6e707c2 100644 --- a/nix/image/nginx.conf +++ b/nix/image/nginx.conf @@ -69,6 +69,16 @@ http { access_log off; } + location ^~ /store_apps { + root /var/www; + try_files $uri /index.php$request_uri; + access_log off; # Optional: Don't log access to assets + + location ~ \.wasm$ { + default_type application/wasm; + } + } + include /conf/nginx-app.conf; location ~ \.php(?:$|/) { diff --git a/src/cloud.rs b/src/cloud.rs index c4de8de..7232e33 100644 --- a/src/cloud.rs +++ b/src/cloud.rs @@ -320,10 +320,7 @@ impl Cloud { }) .chain(once( [ - ( - String::from("path"), - Value::from("/var/www/html/store_apps"), - ), + (String::from("path"), Value::from("/var/www/store_apps")), (String::from("url"), Value::from("/store_apps")), (String::from("writable"), Value::from(true)), ] diff --git a/src/mapping.rs b/src/mapping.rs index 1e04ffb..9c01da0 100644 --- a/src/mapping.rs +++ b/src/mapping.rs @@ -133,7 +133,7 @@ pub fn default_mappings<'a>() -> impl IntoIterator> { Mapping::new(Sources, "", "/var/www/html"), Mapping::new(WorkDir, "data", "/var/www/html/data"), Mapping::new(WorkDir, "config", "/var/www/html/config"), - Mapping::new(WorkDir, "store_apps", "/var/www/html/store_apps"), + Mapping::new(WorkDir, "store_apps", "/var/www/store_apps"), Mapping::new(WorkDir, "data-autotest", "/var/www/html/data-autotest"), Mapping::new(WorkDir, "skeleton", "/var/www/html/core/skeleton"), Mapping::new(