From 7b569bfa5b8ab0fb125879480ec8096e1cf29362 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Sat, 11 Feb 2023 17:07:05 -0500 Subject: [PATCH] [U] Update example --- docs/examples/arch.nginx.conf | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/docs/examples/arch.nginx.conf b/docs/examples/arch.nginx.conf index 7872a87..409df13 100644 --- a/docs/examples/arch.nginx.conf +++ b/docs/examples/arch.nginx.conf @@ -13,32 +13,12 @@ server } # If no file is found on any path, serve meowindex - location ^~ / { + location / { 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 - location ^~ /__meowindex__ { - 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; - } + include "/etc/nginx/MeowIndex/docs/nginx.conf"; ssl_certificate /etc/letsencrypt/live/arch.hydev.org/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/arch.hydev.org/privkey.pem;