Skip to content

Commit 6d98957

Browse files
committed
修复程序中硬编码可导致未授权访问的问题
1 parent ed8c94f commit 6d98957

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 如果需要自定义JWT_SECRET_KEY,请在.env中添加,否则会使用随机字符串

.gitignore

-7
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ node_modules
44
*.db
55

66

7-
# local env files
8-
.env.local
9-
.env.*.local
10-
117
# Log files
128
npm-debug.log*
139
yarn-debug.log*
@@ -125,11 +121,8 @@ celerybeat.pid
125121
*.sage.py
126122

127123
# Environments
128-
.env
129124
.venv
130125
venv/
131-
ENV/
132-
env.bak/
133126
venv.bak/
134127

135128
# Spyder project settings

dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ WORKDIR /app
3939
COPY backend/requirements.txt .
4040
RUN pip install --no-cache-dir -r requirements.txt
4141
COPY backend/ .
42-
RUN touch /app/.env
4342

4443
# 复制 Alembic 配置和迁移脚本
4544
COPY alembic.ini .

0 commit comments

Comments
 (0)