学校订餐菜单生成器:Django+DRF 后端与 React 前端,支持 A/B 双套营养周菜单生成、部分自选、拼音搜索、营养校准、Excel 导出

This commit is contained in:
root
2026-08-06 14:09:27 +08:00
commit 75f214dc40
48 changed files with 4684 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
upstream django_backend {
server backend:8000;
}
server {
listen 80;
server_name xx.mymoyu.top _;
client_max_body_size 20m;
gzip on;
gzip_types text/plain text/css application/javascript application/json;
location /api/ {
proxy_pass http://django_backend;
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;
}
location /admin/ {
proxy_pass http://django_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /static/ {
alias /static/;
expires 7d;
}
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri /index.html;
}
}