fix(backend): change APP_BASE_URL default from port 5173 to 3000
Password reset email links pointed to Vite dev port instead of the Docker frontend port. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -123,7 +123,7 @@ class Settings(BaseSettings):
|
|||||||
|
|
||||||
# Password reset
|
# Password reset
|
||||||
PASSWORD_RESET_TOKEN_EXPIRE_MINUTES: int = 30
|
PASSWORD_RESET_TOKEN_EXPIRE_MINUTES: int = 30
|
||||||
APP_BASE_URL: str = "http://localhost:5173"
|
APP_BASE_URL: str = "http://localhost:3000"
|
||||||
|
|
||||||
# App settings
|
# App settings
|
||||||
APP_NAME: str = "TOD - The Other Dude"
|
APP_NAME: str = "TOD - The Other Dude"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ TOD uses Pydantic Settings for configuration. All values can be set via environm
|
|||||||
| `ENVIRONMENT` | `dev` | Runtime environment: `dev`, `staging`, or `production` |
|
| `ENVIRONMENT` | `dev` | Runtime environment: `dev`, `staging`, or `production` |
|
||||||
| `DEBUG` | `false` | Enable debug mode |
|
| `DEBUG` | `false` | Enable debug mode |
|
||||||
| `CORS_ORIGINS` | `http://localhost:3000,http://localhost:5173,http://localhost:8080` | Comma-separated list of allowed CORS origins |
|
| `CORS_ORIGINS` | `http://localhost:3000,http://localhost:5173,http://localhost:8080` | Comma-separated list of allowed CORS origins |
|
||||||
| `APP_BASE_URL` | `http://localhost:5173` | Frontend base URL (used in password reset emails) |
|
| `APP_BASE_URL` | `http://localhost:3000` | Frontend base URL (used in password reset emails) |
|
||||||
|
|
||||||
### Authentication & JWT
|
### Authentication & JWT
|
||||||
|
|
||||||
|
|||||||
@@ -1241,7 +1241,7 @@ open http://localhost</code></pre>
|
|||||||
<tr><td><code>ENVIRONMENT</code></td><td><code>dev</code></td><td>Runtime environment: <code>dev</code>, <code>staging</code>, or <code>production</code></td></tr>
|
<tr><td><code>ENVIRONMENT</code></td><td><code>dev</code></td><td>Runtime environment: <code>dev</code>, <code>staging</code>, or <code>production</code></td></tr>
|
||||||
<tr><td><code>DEBUG</code></td><td><code>false</code></td><td>Enable debug mode</td></tr>
|
<tr><td><code>DEBUG</code></td><td><code>false</code></td><td>Enable debug mode</td></tr>
|
||||||
<tr><td><code>CORS_ORIGINS</code></td><td><code>http://localhost:3000,...</code></td><td>Comma-separated list of allowed CORS origins</td></tr>
|
<tr><td><code>CORS_ORIGINS</code></td><td><code>http://localhost:3000,...</code></td><td>Comma-separated list of allowed CORS origins</td></tr>
|
||||||
<tr><td><code>APP_BASE_URL</code></td><td><code>http://localhost:5173</code></td><td>Frontend base URL (used in password reset emails)</td></tr>
|
<tr><td><code>APP_BASE_URL</code></td><td><code>http://localhost:3000</code></td><td>Frontend base URL (used in password reset emails)</td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user