chore: update nginx config, add oneapi, verification pages and codebuddy skills

This commit is contained in:
12600k-rog-d4
2026-08-20 02:01:32 +08:00
parent 99afdbd82e
commit 1e5c48ffdd
14 changed files with 194 additions and 56 deletions

View File

@@ -1,6 +1,6 @@
server {
listen 80;
server_name gitea.membank.xyz;
server_name gitea.stonelan.cn;
client_max_body_size 200m;
location / {
proxy_pass http://gitea:3000;

View File

@@ -0,0 +1,11 @@
server {
listen 80;
server_name membank.xyz;
root /usr/share/nginx/html/membank;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}

38
nginx/conf.d/oneapi.conf Normal file
View File

@@ -0,0 +1,38 @@
server {
listen 80;
server_name oneapi.membank.xyz;
location / {
proxy_pass http://oneapi:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# 添加代理超时配置
proxy_connect_timeout 60s;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
# 支持大文件上传和API请求
client_max_body_size 100M;
proxy_buffering off;
# 启用gzip压缩
gzip on;
gzip_vary on;
gzip_min_length 1024;
gzip_proxied any;
gzip_comp_level 6;
gzip_types
text/plain
text/css
text/xml
text/javascript
application/json
application/javascript
application/xml+rss
application/atom+xml
image/svg+xml;
}
}

21
nginx/conf.d/sy.conf Normal file
View File

@@ -0,0 +1,21 @@
server {
listen 80;
server_name sy.membank.xyz;
location / {
proxy_pass http://10.0.3.148:6806;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# WebSocket 支持
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# 添加代理超时配置
proxy_connect_timeout 60s;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}

18
nginx/conf.d/v.conf Normal file
View File

@@ -0,0 +1,18 @@
server {
listen 80;
server_name v.membank.xyz;
location / {
root /usr/share/nginx/html/v;
index index.html index.htm;
# 启用目录浏览(可选)
autoindex on;
# 添加缓存配置
location ~* \.(html|css|js|png|jpg|jpeg|gif|ico|svg)$ {
expires 1d;
add_header Cache-Control "public, immutable";
}
}
}