Skip to content

Commit b1ad9da

Browse files
committed
Update token TTL to 6 months
1 parent 7afde70 commit b1ad9da

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

backend/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ python scripts/create_workspace.py
1616
```
1717

1818
Optional (self-serve onboarding): set `ENABLE_PUBLIC_WORKSPACE_ISSUE=1` and the web UI can call
19-
`POST /api/workspaces/issue` to create a 30-day token (protect this endpoint in production).
19+
`POST /api/workspaces/issue` to create a 6-month token (protect this endpoint in production).
2020

2121
## Setup
2222
```bash

backend/app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def get_workspace(db: DbDep, authorization: AuthHeader = None) -> Workspace:
142142
"false",
143143
"False",
144144
}
145-
PUBLIC_WORKSPACE_TTL_DAYS = int(os.getenv("PUBLIC_WORKSPACE_TTL_DAYS", "30"))
145+
PUBLIC_WORKSPACE_TTL_DAYS = int(os.getenv("PUBLIC_WORKSPACE_TTL_DAYS", "180"))
146146

147147

148148

docs/DEPLOYMENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Both options use the same app code. The only differences are environment variabl
3838
- `OPENROUTER_API_KEY` and `OPENROUTER_MODEL`
3939
- Optional self-serve onboarding:
4040
- `ENABLE_PUBLIC_WORKSPACE_ISSUE=1`
41-
- `PUBLIC_WORKSPACE_TTL_DAYS=30`
41+
- `PUBLIC_WORKSPACE_TTL_DAYS=180`
4242

4343
## Option A — Vercel + Cloud Run + Cloud SQL Postgres
4444

@@ -106,7 +106,7 @@ EasyRelocate does not ship a signup/login flow. You have two choices:
106106
Run the script against the same Postgres `DATABASE_URL` the backend uses:
107107
```bash
108108
cd backend
109-
DATABASE_URL="postgresql+psycopg://..." python scripts/create_workspace.py --ttl-days 30
109+
DATABASE_URL="postgresql+psycopg://..." python scripts/create_workspace.py --ttl-days 180
110110
```
111111

112112
Output:

frontend/src/pages/OnboardingTokenPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export default function OnboardingTokenPage() {
183183
<section className="onboardingHero">
184184
<h1>Workspace token</h1>
185185
<p className="onboardingSubtitle">
186-
This token is valid for 30 days. Keep it private (like a password).
186+
This token is valid for 6 months. Keep it private (like a password).
187187
</p>
188188
<p className="onboardingSubtitle" style={{ marginTop: 6 }}>
189189
You can update your token anytime in the Map page (Workspace panel). Saving a new token

0 commit comments

Comments
 (0)