111 次代码提交 5761c60ba0 ... ced2baa42f

作者 SHA1 备注 提交日期
  Adam Jafarov ced2baa42f chore: add .env.example files and update .gitignore to prevent secret commits 9 小时之前
  Adam Jafarov 5761c60ba0 chore: update posts submodule reference 9 小时之前
  Adam Jafarov 130e2174a2 chore: update posts submodule reference 9 小时之前
  Adam Jafarov b7c42676c6 config: change theme to default and increase post width to max-w-6xl 10 小时之前
  Adam Jafarov 0f9646b705 config: change theme to default and increase post width to max-w-6xl 10 小时之前
  Adam Jafarov c3fd0e2835 feat: add AI prompt modal component and Gemini API key 1 周之前
  Adam Jafarov bccf75b696 feat: add AI prompt modal component and Gemini API key 1 周之前
  Adam Jafarov 17127a905e feat: integrate Google Gemini AI for content generation in post editor 1 周之前
  Adam Jafarov 11cec7d6b3 feat: integrate Google Gemini AI for content generation in post editor 1 周之前
  Adam Jafarov cb77ac5b69 fix: refactor password change endpoint with proper authentication middleware 1 周之前
  Adam Jafarov 7967ad3c60 fix: refactor password change endpoint with proper authentication middleware 1 周之前
  Adam Jafarov 78aedeb1d9 chore: update posts submodule and add Layout component changes 1 周之前
  Adam Jafarov e573efdacb chore: update posts submodule and add Layout component changes 1 周之前
  Adam Jafarov a6809e0a11 fix: correct API endpoint path and adjust post width config 1 周之前
  Adam Jafarov bade278c10 fix: correct API endpoint path and adjust post width config 1 周之前
  Adam Jafarov bbdaf926de feat: add CSV file support to media gallery and improve file filtering 3 周之前
  Adam Jafarov c8e9d310f1 feat: add CSV file support to media gallery and improve file filtering 3 周之前
  Adam Jafarov 967eac3ee6 SceneCSV readability fix 3 周之前
  Adam Jafarov c7ecfac2d7 SceneCSV readability fix 3 周之前
  Adam Jafarov 69f6b8d03b scene improvements 3 周之前
  Adam Jafarov 7f7845e58f scene improvements 3 周之前
  Adam Jafarov 42eab54d0a Add Scene CSV parsing 3 周之前
  Adam Jafarov b0086e030e Add Scene CSV parsing 3 周之前
  Adam Jafarov 4d710a1280 feat: add draft post functionality to editor and backend 3 周之前
  Adam Jafarov 8f0cf6444a feat: add draft post functionality to editor and backend 3 周之前
  Adam Jafarov f2d3c2f914 theme decoupling 3 周之前
  Adam Jafarov d4af9c05c8 theme decoupling 3 周之前
  Adam Jafarov e9c985c7d7 refactor: improve post editor layout and theme integration 3 周之前
  Adam Jafarov 0d337c795b refactor: improve post editor layout and theme integration 3 周之前
  Adam Jafarov 39bd2f8647 refactor: enhance post editor UI and component structure 3 周之前
  Adam Jafarov 7e361320d4 refactor: enhance post editor UI and component structure 3 周之前
  Adam Jafarov 27f3e2f7a6 feat: add synchronized scrolling to post editor 3 周之前
  Adam Jafarov 93356461a4 feat: add synchronized scrolling to post editor 3 周之前
  Adam Jafarov 7481bfff50 refactor: major post editor restructure with improved state management 3 周之前
  Adam Jafarov 175e9637c7 refactor: major post editor restructure with improved state management 3 周之前
  Adam Jafarov 387bf0b3d7 fix: minor post editor adjustments 3 周之前
  Adam Jafarov 8c1b4c559d fix: minor post editor adjustments 3 周之前
  Adam Jafarov f501c84ae6 refactor: redesign post editor interface with improved styling 3 周之前
  Adam Jafarov 69313652c2 refactor: redesign post editor interface with improved styling 3 周之前
  Adam Jafarov e7bb54a6f0 chore: update posts submodule reference 3 周之前
  Adam Jafarov 351239579d chore: update posts submodule reference 3 周之前
  Adam Jafarov cfacc92ca8 feat:editor: added support for image copypasting 3 周之前
  Adam Jafarov 214abcc978 feat:editor: added support for image copypasting 3 周之前
  Adam Jafarov f1e51b4cd5 feat:editor: sync scroll position in editor/preview 3 周之前
  Adam Jafarov 6b032a7f86 feat:editor: sync scroll position in editor/preview 3 周之前
  Adam Jafarov a7e7b53d2a refactor: simplify post editor component structure 1 月之前
  Adam Jafarov fe22c7f45c refactor: simplify post editor component structure 1 月之前
  Adam Jafarov 78fb6d8e0a refactor: extract BlogHome, Layout, and PostView components from App 1 月之前
  Adam Jafarov 847daaee96 refactor: extract BlogHome, Layout, and PostView components from App 1 月之前
  Adam Jafarov a67fc27ab9 refactor: improve App.jsx code structure and readability 1 月之前
  Adam Jafarov 9398dae542 refactor: improve App.jsx code structure and readability 1 月之前
  Adam Jafarov 7085bfc224 config: make chunks smaller 1 月之前
  Adam Jafarov 15f538ad95 config: make chunks smaller 1 月之前
  Adam Jafarov 80136dff30 chore: update posts submodule reference 1 月之前
  Adam Jafarov 04b9a36a05 chore: update posts submodule reference 1 月之前
  Adam Jafarov eb48c6ba35 chore: remove test files and update theme config 1 月之前
  Adam Jafarov 06dab6b7ac chore: remove test files and update theme config 1 月之前
  Adam Jafarov 25248d7289 backend: fix date changing on post 1 月之前
  Adam Jafarov 66c59ce124 backend: fix date changing on post 1 月之前
  Adam Jafarov 7587e40ba1 chore: update posts submodule to 0f9a4fa 1 月之前
  Adam Jafarov d9a6a891ac chore: update posts submodule to 0f9a4fa 1 月之前
  Adam 7c5e332b1a chore: update .gitignore 1 月之前
  Adam ea5fc7e044 chore: update .gitignore 1 月之前
  Adam 6b4e2f5bac feat: migrate public/posts to submodule 1 月之前
  Adam 8d4b323288 feat: migrate public/posts to submodule 1 月之前
  Adam ccbf125a66 chore: remove public/posts to replace with submodule 1 月之前
  Adam 3f77c8da2a chore: remove public/posts to replace with submodule 1 月之前
  Adam 9913ce9346 chore: remove test post and add custom CSS styles 1 月之前
  Adam 49afa57ded chore: remove test post and add custom CSS styles 1 月之前
  Adam a65ea0ef61 Fix 69420.2 1 月之前
  Adam 0e2c25fa2e Fix 69420.2 1 月之前
  Adam 78c97a6ef9 Fix 69420.1 1 月之前
  Adam 956aba7c2f Fix 69420.1 1 月之前
  Adam 2a681e8f74 Fix 69420 1 月之前
  Adam fa990c3f4a Fix 69420 1 月之前
  Adam e1b80caefe Add favicon 3 月之前
  Adam c94222f95a Add favicon 3 月之前
  Adam 06996bebe0 feat: expand hey-there post content 3 月之前
  Adam 9a663ca55c feat: expand hey-there post content 3 月之前
  Adam 545664301e fix: update theme config and remove env variable 3 月之前
  Adam ab6fb4dc89 fix: update theme config and remove env variable 3 月之前
  Adam 5681c538ae docs: simplify README 3 月之前
  Adam 2874bfa670 docs: simplify README 3 月之前
  Adam ec63fd5769 feat: add new feature to App component 3 月之前
  Adam 09b4024e3e feat: add new feature to App component 3 月之前
  Adam b415a43837 config: add configuration to config.js 3 月之前
  Adam af839a51bc config: add configuration to config.js 3 月之前
  Adam 3075104b7d refactor: major code formatting and structure improvements 3 月之前
  Adam 4695ff1ee5 refactor: major code formatting and structure improvements 3 月之前
  Adam a159d33a9c refactor: reformat theme-related components 3 月之前
  Adam f1f1460598 refactor: reformat theme-related components 3 月之前
  Adam 1d41c19c03 chore: rename post file from 20251022 to 20251025 3 月之前
  Adam 874faedaf3 chore: rename post file from 20251022 to 20251025 3 月之前
  Adam 1ccb673170 docs: expand README with detailed information 3 月之前
  Adam 236f1d2f2f docs: expand README with detailed information 3 月之前
  Adam 9fda607db3 chore: remove deployment scripts and documentation 3 月之前
  Adam 1a7cea120c chore: remove deployment scripts and documentation 3 月之前
  Adam c3720c4f7b Merge branch 'main' of https://github.com/theVakhovskeIsTaken/gooneral-wheelchair 3 月之前
  Adam 32f1a05c57 Merge branch 'main' of https://github.com/theVakhovskeIsTaken/gooneral-wheelchair 3 月之前
  Adam f894605ff8 content: add content to hey-there post 3 月之前
  Adam a9a72d913d content: add content to hey-there post 3 月之前
  Adam 7dd5e65721 refactor: reformat backend server and remove old post 3 月之前
  Adam 7ede690377 refactor: reformat backend server and remove old post 3 月之前
  theVakhovskeIsTaken 255e9b7b41 refactor: simplify backend server code 4 月之前
  theVakhovskeIsTaken 88f13bd9d9 refactor: simplify backend server code 4 月之前
  theVakhovskeIsTaken a47de0bf17 refactor: clean up backend server code 4 月之前
  theVakhovskeIsTaken 8c48289708 refactor: clean up backend server code 4 月之前
  Adam dc0249cd1c fix: adjust backend server configuration 4 月之前
  Adam 5210b7320c fix: adjust backend server configuration 4 月之前
  theVakhovskeIsTaken 10b4e88f60 feat: add comprehensive deployment configuration and scripts 4 月之前
  theVakhovskeIsTaken 7ca25bc335 feat: add comprehensive deployment configuration and scripts 4 月之前
共有 4 个文件被更改,包括 18 次插入4 次删除
  1. 9 0
      .gitignore
  2. 0 1
      backend/.env
  3. 4 0
      backend/.env.example
  4. 5 3
      backend/.env.production.example

+ 9 - 0
.gitignore

@@ -26,3 +26,12 @@ dist-ssr
 *.sw?
 public/posts/*
 public/posts/index.json
+
+# Environment variables - never commit these!
+.env
+.env.local
+.env.production
+.env.*.local
+backend/.env
+backend/.env.production
+backend/.env.local

+ 0 - 1
backend/.env

@@ -1 +0,0 @@
-GEMINI_API_KEY=AIzaSyBn_UbFZKCZ18GeMv6l0tSccxDpzRJsbW0

+ 4 - 0
backend/.env.example

@@ -0,0 +1,4 @@
+# Local Development Environment Variables
+# Copy this file to .env and fill in your actual values
+
+GEMINI_API_KEY=your_gemini_api_key_here

+ 5 - 3
backend/.env.production → backend/.env.production.example

@@ -1,20 +1,22 @@
 # Production Environment Variables
+# Copy this file to .env.production and fill in your actual values
 
 # Server Configuration
 NODE_ENV=production
 PORT=3001
 
 # Session Configuration - CHANGE THIS SECRET IN PRODUCTION!
-SESSION_SECRET=your-super-secret-session-key-change-this-immediately
+SESSION_SECRET=generate_a_secure_random_string_here
 
 # CORS Configuration - Update with your actual domain
-FRONTEND_URL=https://goonblog.thevakhovske.eu.org
+FRONTEND_URL=https://your-domain.com
 
 # Database/Storage paths (relative to backend directory)
 POSTS_DIR=../public/posts
 THEMES_FILE=./themes.json
 
-GEMINI_API_KEY=AIzaSyBn_UbFZKCZ18GeMv6l0tSccxDpzRJsbW0
+# AI Configuration
+GEMINI_API_KEY=your_gemini_api_key_here
 
 # Security Settings
 COOKIE_SECURE=true