-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
65 lines (52 loc) · 2.61 KB
/
Copy path.env.example
File metadata and controls
65 lines (52 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Redis configuration
REDIS_HOST=localhost
REDIS_PORT=6379
# Application environment (development, staging, production)
ENVIRONMENT=development
# Maximum allowed file upload size in megabytes
MAX_FILE_SIZE_MB=20
# Number of allowed requests per minute for rate limiting
RATE_LIMIT_PER_MINUTE=10
# Time-to-live for temporary download URLs in seconds
TEMP_URL_TTL_SECONDS=300
# ── Accounts, history & OAuth (all optional) ──────────────────────────
# CoreTex runs fine as a stateless converter with everything below unset.
# Filling these in activates email/password sign-in, conversion history,
# and Google / GitHub OAuth. A provider's button only appears on /login
# once BOTH its CLIENT_ID and CLIENT_SECRET are set (see /auth/providers).
# Postgres connection string. REQUIRED for any auth — including Google and
# GitHub OAuth, whose callbacks create/link the user row here — and for
# history. Railway provides ${{Postgres.DATABASE_URL}}. Empty = auth off.
DATABASE_URL=
# Secret used to sign JWT session tokens. REQUIRED for auth.
# Generate one with: openssl rand -hex 32
JWT_SECRET=
# Optional JWT tuning (defaults shown — leave commented to use them).
# JWT_ALGORITHM=HS256
# JWT_EXPIRES_HOURS=168
# Google OAuth — create an "OAuth client ID" (type: Web application) at
# https://console.cloud.google.com/apis/credentials
# Authorised redirect URI must exactly match:
# <OAUTH_REDIRECT_BASE>/auth/google/callback
GOOGLE_OAUTH_CLIENT_ID=
GOOGLE_OAUTH_CLIENT_SECRET=
# GitHub OAuth — create a "New OAuth App" at
# https://github.com/settings/developers
# Authorization callback URL must exactly match:
# <OAUTH_REDIRECT_BASE>/auth/github/callback
GITHUB_OAUTH_CLIENT_ID=
GITHUB_OAUTH_CLIENT_SECRET=
# Base URL the OAuth provider redirects back to (this backend). Must match
# the redirect/callback URL registered with each provider above.
# Prod example: https://coretex-production.up.railway.app
OAUTH_REDIRECT_BASE=http://localhost:8000
# Where the backend bounces the browser after a successful OAuth login —
# your frontend's origin. The JWT is appended as #token=... on /auth/callback.
FRONTEND_URL=http://localhost:5173
# ── CORS / deployment (optional) ──────────────────────────────────────
# Extra allowed browser origins (comma-separated) on top of localhost:5173.
# Set to your deployed frontend, e.g. https://coretex.vercel.app
ALLOWED_ORIGINS=
# Production Redis URL (Railway provides ${{Redis.REDIS_URL}}). When set,
# it takes precedence over REDIS_HOST / REDIS_PORT above.
REDIS_URL=