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:
parent
e9cb4f08e3
commit
bf7a8d9a34
3 changed files with 12 additions and 5 deletions
|
|
@ -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(?:$|/) {
|
||||||
|
|
|
||||||
|
|
@ -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)),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue