增加文件夹放html网页并自动生成到www.yaobai.org下

This commit is contained in:
2026-05-08 05:00:19 +00:00
parent e326bf2359
commit d63eeae5c8
2 changed files with 73 additions and 18 deletions
+8 -17
View File
@@ -5,6 +5,14 @@ server {
ssl_certificate_key /etc/letsencrypt/live/www.yaobai.org/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location /tutorials {
alias /var/www/html/tutorials;
index index.html;
try_files $uri $uri/ =404;
add_header Cache-Control "no-cache";
}
location /aisearch {
proxy_pass http://127.0.0.1:8766/search;
proxy_set_header Host $host;
@@ -12,7 +20,6 @@ server {
proxy_send_timeout 120s;
add_header Access-Control-Allow-Origin *;
}
location / {
proxy_pass http://127.0.0.1:11006;
@@ -22,19 +29,3 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
}
server {
listen 443 ssl;
server_name ybih.140103.xyz;
ssl_certificate /etc/letsencrypt/live/ybih.140103.xyz/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/ybih.140103.xyz/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
return 301 https://www.yaobai.org$request_uri;
}
server {
listen 80;
server_name www.yaobai.org ybih.140103.xyz;
return 301 https://www.yaobai.org$request_uri;
}