feat:增加docker部署

This commit is contained in:
2026-07-29 22:38:46 +08:00
parent 4d49660b18
commit 78237984ec
13 changed files with 86 additions and 11 deletions

25
nginx.conf Normal file
View File

@@ -0,0 +1,25 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
root /usr/share/nginx/html;
index index.html;
server_name _;
client_max_body_size 500M;
location /study-agent/ {
alias /usr/share/nginx/html/;
try_files $uri $uri/ /study-agent/index.html;
}
location /study-api/ {
proxy_pass http://host.docker.internal:8001/;
}
location / {
try_files $uri $uri/ =404;
}
}