[O] Even more simplistic deployment guide
This commit is contained in:
@@ -5,7 +5,7 @@ server
|
||||
listen [::]:443 ssl;
|
||||
server_name arch.hydev.org;
|
||||
|
||||
root /data/OS/ArchMirror/RISCV;
|
||||
set $dirpath /data/OS/ArchMirror/RISCV;
|
||||
|
||||
# Serve a different file for your home page (if you want one)
|
||||
location = / {
|
||||
@@ -14,7 +14,7 @@ server
|
||||
|
||||
# If no file is found on any path, serve meowindex
|
||||
location / {
|
||||
try_files $uri /__meowindex__/index.html;
|
||||
try_files $uri $uri/index.html /__meowindex__/index.html;
|
||||
}
|
||||
|
||||
# The MeowIndex web app block
|
||||
|
||||
+3
-1
@@ -1,3 +1,5 @@
|
||||
root $dir_path;
|
||||
|
||||
# The MeowIndex web app block
|
||||
location /__meowindex__ {
|
||||
alias /etc/nginx/MeowIndex/dist;
|
||||
@@ -15,7 +17,7 @@ location /__meowindex__ {
|
||||
|
||||
# The api block
|
||||
location /api {
|
||||
rewrite ^/api(/.*)$ $1 break;
|
||||
alias $dir_path;
|
||||
index DISABLE_INDEX_HTML_AUTO_MATCHING;
|
||||
|
||||
autoindex on;
|
||||
|
||||
Reference in New Issue
Block a user