This commit is contained in:
12600k-rog-d4
2026-04-01 02:21:55 +08:00
parent 398fcf9aff
commit 1e15827707
22 changed files with 764 additions and 166 deletions

26
user-guide/nginx.conf Normal file
View File

@@ -0,0 +1,26 @@
server {
listen 80;
server_name localhost;
root /app;
index index.html;
autoindex on;
autoindex_format html;
location ~* \.(md)$ {
add_header Content-Type text/plain;
}
location ~* \.(png|jpg|jpeg|gif|svg|ico)$ {
expires 30d;
add_header Cache-Control "public, immutable";
}
location ~* \.(html)$ {
add_header Content-Type text/html;
}
location / {
try_files $uri $uri/ =404;
}
}