From 80d9789c70f4be3b2d3ed2582708c89e22fea3e5 Mon Sep 17 00:00:00 2001 From: MSuMshk <2039814060@qq.com> Date: Fri, 20 Feb 2026 16:49:54 +0800 Subject: [PATCH] chore: sync all pending prototype changes --- .claude/settings.local.json | 31 +++++++++++++++++++++++++++++++ docker-compose.yml | 8 ++++++++ nginx.conf | 16 ++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 .claude/settings.local.json create mode 100644 docker-compose.yml create mode 100644 nginx.conf diff --git a/.claude/settings.local.json b/.claude/settings.local.json new file mode 100644 index 0000000..3a4dc22 --- /dev/null +++ b/.claude/settings.local.json @@ -0,0 +1,31 @@ +{ + "permissions": { + "allow": [ + "Bash(python scripts/search.py:*)", + "Bash(git config:*)", + "Bash(findstr:*)", + "Bash(git remote add:*)", + "Bash(git remote set-url:*)", + "Bash(git push:*)", + "Bash(git branch:*)", + "Bash(git fetch:*)", + "Bash(git checkout:*)", + "Bash(git stash:*)", + "Bash(git merge:*)", + "Bash(git reset:*)", + "Bash(git ls-tree:*)", + "Bash(dir:*)", + "Bash(python -c:*)", + "Bash(python:*)", + "Bash(python3:*)", + "Bash(git -C \"D:\\\\MsuMshkCode\\\\TakeoutSaaS.Prototypes\" rev-parse --show-toplevel)", + "Bash(git init:*)", + "Bash(git add:*)", + "Bash(git commit -m \"$\\(cat <<''EOF''\nfeat: init project with pages and index\nEOF\n\\)\")" + ] + }, + "enableAllProjectMcpServers": true, + "enabledMcpjsonServers": [ + "dbhub" + ] +} diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..737a463 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +services: + nginx: + image: nginx:latest + ports: + - "3000:80" + volumes: + - ./:/usr/share/nginx/html:ro + - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..fee132e --- /dev/null +++ b/nginx.conf @@ -0,0 +1,16 @@ +server { + listen 80; + server_name localhost; + + root /usr/share/nginx/html; + index index.html index.htm; + + # 开发环境禁用缓存 + add_header Cache-Control "no-store, no-cache, must-revalidate, max-age=0"; + add_header Pragma "no-cache"; + expires -1; + + location / { + try_files $uri $uri/ /index.html; + } +}