1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

dont polute store_app

This commit is contained in:
Robin Appelman 2026-03-06 00:48:12 +01:00
commit bf7a8d9a34
3 changed files with 12 additions and 5 deletions

View file

@ -69,6 +69,16 @@ http {
access_log off; 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; include /conf/nginx-app.conf;
location ~ \.php(?:$|/) { location ~ \.php(?:$|/) {

View file

@ -320,10 +320,7 @@ impl Cloud {
}) })
.chain(once( .chain(once(
[ [
( (String::from("path"), Value::from("/var/www/store_apps")),
String::from("path"),
Value::from("/var/www/html/store_apps"),
),
(String::from("url"), Value::from("/store_apps")), (String::from("url"), Value::from("/store_apps")),
(String::from("writable"), Value::from(true)), (String::from("writable"), Value::from(true)),
] ]

View file

@ -133,7 +133,7 @@ pub fn default_mappings<'a>() -> impl IntoIterator<Item = Mapping<'a>> {
Mapping::new(Sources, "", "/var/www/html"), Mapping::new(Sources, "", "/var/www/html"),
Mapping::new(WorkDir, "data", "/var/www/html/data"), Mapping::new(WorkDir, "data", "/var/www/html/data"),
Mapping::new(WorkDir, "config", "/var/www/html/config"), 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, "data-autotest", "/var/www/html/data-autotest"),
Mapping::new(WorkDir, "skeleton", "/var/www/html/core/skeleton"), Mapping::new(WorkDir, "skeleton", "/var/www/html/core/skeleton"),
Mapping::new( Mapping::new(