diff --git a/nginx_config/gaokao.conf.panel b/nginx_config/gaokao.conf.panel new file mode 100644 index 0000000..3828c47 --- /dev/null +++ b/nginx_config/gaokao.conf.panel @@ -0,0 +1,49 @@ +server { + listen 80; + server_name zszs.site 192.144.179.11; + + # Security Headers + add_header X-Frame-Options "SAMEORIGIN" always; + add_header X-Content-Type-Options "nosniff" always; + add_header X-XSS-Protection "1; mode=block" always; + add_header Referrer-Policy "strict-origin-when-cross-origin" always; + + location / { + root /www/wwwroot/gaokao; + index index.html; + try_files $uri $uri/ /index.html; + } + + location /ai-chat { + proxy_pass http://127.0.0.1:8080/chat; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_read_timeout 150s; + } + + location /chat { + proxy_pass http://127.0.0.1:8080/chat; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_read_timeout 150s; + } + + location /ai-tool-chat { + proxy_pass http://127.0.0.1:8080/ai-tool-chat; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_read_timeout 150s; + } + + location /api/ { + proxy_pass http://127.0.0.1:8080/api/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_read_timeout 150s; + } + + location /health { + proxy_pass http://127.0.0.1:8080/health; + proxy_set_header Host $host; + } +} diff --git a/nginx_config/robots.txt b/nginx_config/robots.txt new file mode 100644 index 0000000..d6cad68 --- /dev/null +++ b/nginx_config/robots.txt @@ -0,0 +1,6 @@ +User-agent: * +Allow: / +Disallow: /api/ +Disallow: /gaokao_henan.db + +Sitemap: http://192.144.179.11/sitemap.xml diff --git a/nginx_config/sitemap.xml b/nginx_config/sitemap.xml new file mode 100644 index 0000000..c84a05b --- /dev/null +++ b/nginx_config/sitemap.xml @@ -0,0 +1,43 @@ + + + + http://192.144.179.11/ + weekly + 1.0 + + + http://192.144.179.11/ai-chat + weekly + 0.9 + + + http://192.144.179.11/ai-tool.html + monthly + 0.8 + + + http://192.144.179.11/plan.html + monthly + 0.8 + + + http://192.144.179.11/school.html + monthly + 0.7 + + + http://192.144.179.11/major.html + monthly + 0.7 + + + http://192.144.179.11/qa.html + monthly + 0.6 + + + http://192.144.179.11/diag.html + monthly + 0.6 + +