[F] Fix deploy subpath breadcrumbs

This commit is contained in:
Azalea Gui
2023-03-20 17:15:50 -04:00
parent 0018b035bd
commit 4418c9c8bd
2 changed files with 14 additions and 7 deletions
+6 -1
View File
@@ -1,5 +1,9 @@
root $dir_path;
if ($deploy_path = "") {
set $deploy_path "/";
}
# The MeowIndex web app block
location /__meowindex__ {
alias /etc/nginx/MeowIndex/dist;
@@ -7,7 +11,8 @@ location /__meowindex__ {
# Use sub_filter to configure the app
sub_filter_types application/javascript;
sub_filter_once off;
sub_filter "{DEPLOY-PATH-PLACEHOLDER}" "/__meowindex__";
sub_filter "{ASSETS-PATH-PLACEHOLDER}" "/__meowindex__";
sub_filter "{DEPLOY-PATH-PLACEHOLDER}" $deploy_path;
sub_filter "{HOST-PLACEHOLDER}" "/api";
sub_filter "\"/assets" "\"/__meowindex__/assets";
sub_filter "File Listing" $title;