[U] Update example
This commit is contained in:
@@ -13,32 +13,12 @@ server
|
|||||||
}
|
}
|
||||||
|
|
||||||
# If no file is found on any path, serve meowindex
|
# If no file is found on any path, serve meowindex
|
||||||
location ^~ / {
|
location / {
|
||||||
try_files $uri /__meowindex__/index.html;
|
try_files $uri /__meowindex__/index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
# The api block
|
|
||||||
location ^~ /api {
|
|
||||||
alias /data/OS/ArchMirror/RISCV;
|
|
||||||
index DISABLE_INDEX_HTML_AUTO_MATCHING;
|
|
||||||
|
|
||||||
autoindex on;
|
|
||||||
autoindex_format json;
|
|
||||||
add_header Access-Control-Allow-Origin *;
|
|
||||||
}
|
|
||||||
|
|
||||||
# The MeowIndex web app block
|
# The MeowIndex web app block
|
||||||
location ^~ /__meowindex__ {
|
include "/etc/nginx/MeowIndex/docs/nginx.conf";
|
||||||
alias /etc/nginx/MeowIndex/dist;
|
|
||||||
|
|
||||||
sub_filter_types application/javascript;
|
|
||||||
sub_filter_once off;
|
|
||||||
sub_filter "{DEPLOY-PATH-PLACEHOLDER}" "/__meowindex__";
|
|
||||||
sub_filter "{HOST-PLACEHOLDER}" "/api";
|
|
||||||
sub_filter "\"/assets" "\"/__meowindex__/assets";
|
|
||||||
|
|
||||||
try_files $uri /__meowindex__/index.html;
|
|
||||||
}
|
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/arch.hydev.org/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/arch.hydev.org/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/arch.hydev.org/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/arch.hydev.org/privkey.pem;
|
||||||
|
|||||||
Reference in New Issue
Block a user