feat:增加Docker部署

This commit is contained in:
2025-10-16 17:35:45 +08:00
parent 80139c54d1
commit 0fa8cfb79f
8 changed files with 71 additions and 43 deletions

23
nginx.conf Normal file
View File

@@ -0,0 +1,23 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
root /usr/share/nginx/html;
index index.html;
server_name _;
location /food-hub/ {
alias /usr/share/nginx/html/;
try_files $uri $uri/ /food-hub/index.html;
}
location /food-api/ {
proxy_pass http://host.docker.internal:8083/;
}
location / {
try_files $uri $uri/ =404;
}
}