From 2d786882eb01e53534eaf4b2d48c7544f8e83e4b Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Mar 2026 15:44:43 +0800 Subject: [PATCH] fix: change ports to 3600/3610 for remote access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - frontend: 3000 → 3600 - backend: 8000 → 3610 - update vite.config.ts proxy - update README.md Co-Authored-By: Claude Opus 4.6 --- imagecreator/README.md | 6 +++--- imagecreator/docker-compose.yml | 4 ++-- imagecreator/frontend/vite.config.ts | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/imagecreator/README.md b/imagecreator/README.md index bbaa72e..f5b8cf8 100644 --- a/imagecreator/README.md +++ b/imagecreator/README.md @@ -42,9 +42,9 @@ A full-stack image generation website with user authentication, prompt optimizat docker-compose up -d ``` -- Frontend: http://localhost:3000 -- Backend API: http://localhost:8000 -- API Docs: http://localhost:8000/docs +- Frontend: http://localhost:3600 +- Backend API: http://localhost:3610 +- API Docs: http://localhost:3610/docs ## Development diff --git a/imagecreator/docker-compose.yml b/imagecreator/docker-compose.yml index 980c45c..51a20db 100644 --- a/imagecreator/docker-compose.yml +++ b/imagecreator/docker-compose.yml @@ -4,7 +4,7 @@ services: backend: build: ./backend ports: - - "8000:8000" + - "3610:8000" environment: - DATABASE_URL=postgresql://user:pass@db:5432/imagecreator - SECRET_KEY=change-this-secret-key-in-production @@ -19,7 +19,7 @@ services: frontend: build: ./frontend ports: - - "3000:80" + - "3600:80" depends_on: - backend diff --git a/imagecreator/frontend/vite.config.ts b/imagecreator/frontend/vite.config.ts index 24da7f8..e4a8454 100644 --- a/imagecreator/frontend/vite.config.ts +++ b/imagecreator/frontend/vite.config.ts @@ -8,11 +8,11 @@ export default defineConfig({ port: 5173, proxy: { '/api': { - target: 'http://localhost:8000', + target: 'http://localhost:3610', changeOrigin: true }, '/uploads': { - target: 'http://localhost:8000', + target: 'http://localhost:3610', changeOrigin: true } }