소스 검색

Track env example and align deployment defaults

tanlie 6 일 전
부모
커밋
5ccceb51dc
2개의 변경된 파일23개의 추가작업 그리고 0개의 파일을 삭제
  1. 20 0
      .env.example
  2. 3 0
      .gitignore

+ 20 - 0
.env.example

@@ -0,0 +1,20 @@
+# Copy this file to .env and replace the sample values with your real deployment settings.
+# This file is tracked in git and is safe to version because it contains no real secrets.
+
+SECRET_KEY=change-me-in-production
+FLASK_ENV=production
+
+# MySQL configuration for the application container.
+# For Docker Desktop / host-based MySQL, use host.docker.internal.
+MYSQL_HOST=host.docker.internal
+MYSQL_PORT=3306
+MYSQL_USER=root
+MYSQL_PASSWORD=your_mysql_password_here
+MYSQL_DB=flask
+MYSQL_CHARSET=utf8mb4
+
+# Optional logging settings
+LOG_FILE=logs/app.log
+LOG_MAX_BYTES=10485760
+LOG_BACKUP_COUNT=5
+EXTERNAL_LOG_URL=

+ 3 - 0
.gitignore

@@ -15,8 +15,11 @@ htmlcov/
 *.egg-info/
 dist/
 build/
+# Keep .env.example tracked; ignore only real environment files.
 .env
+.env.local
 .env.*
+!.env.example
 .idea/
 .vscode/
 .DS_Store