XQZINC
XQZINC
SSolidJS
Created by XQZINC on 4/13/2024 in #support
App is misconfigured. Please correct sub_filter.
Config file: root $dir_path; if ($deploy_path = "http://localhost:3000") { set $deploy_path "/"; } The MeowIndex web app block location /meowindex { alias /etc/nginx/MeowIndex/dist; # Use sub_filter to configure the app sub_filter_types application/javascript text/javascript; sub_filter_once off; 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; # Serve index.html on other 404 paths as well try_files $uri /meowindex/index.html; } The api block location /api { alias $dir_path; index DISABLE_INDEX_HTML_AUTO_MATCHING; autoindex on; autoindex_format json; add_header Access-Control-Allow-Origin *; } I tried replacing the "$deploy_path" with the localhost address it still did not work
1 replies