-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
48 lines (42 loc) · 2.06 KB
/
Copy path.env.example
File metadata and controls
48 lines (42 loc) · 2.06 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
# Redstring local development environment.
# Copy to `.env` and fill in your local-dev values.
# Never commit real secrets.
# --- Ports ---
OAUTH_PORT=3002
PORT=4001
NODE_ENV=development
# --- GitHub OAuth ---
#
# Redstring uses a DIFFERENT GitHub OAuth app per environment. Each app has its
# own callback URL registered on github.com — the wrong client_id will produce
# "redirect_uri is not associated with this application" on the consent screen.
#
# Env | Hostname | Callback URL registered on GitHub | Secrets source
# -------|------------------------------|------------------------------------------|------------------------------------------
# Local | http://localhost:4001 | http://localhost:3002/oauth/callback | this .env file
# Test | https://redstring-test-*.run.app | https://redstring-test-*.run.app/oauth/callback | GCP Secret Manager: github-client-id-test
# Prod | https://redstring.io | https://redstring.io/oauth/callback | GCP Secret Manager: github-client-id
#
# For local dev, register a new OAuth app at https://github.com/settings/developers
# with the localhost callback above, then paste its client_id + secret here.
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
# --- GitHub App (optional, for richer per-repo install flow) ---
# See .env.github-app for the matching setup.
# GITHUB_APP_ID=
# GITHUB_APP_PRIVATE_KEY=
# --- Electron Device Flow (desktop builds only, OPTIONAL OVERRIDE) ---
#
# The packaged Electron app does NOT run a local oauth-server and does NOT
# call redstring.io. GitHub auth happens via Device Flow directly against
# github.com using public OAuth/App client IDs.
#
# Defaults (the upstream Redstring apps) are baked into src/config/
# githubClientIds.js so clones build out of the box. Only set these vars
# if your fork has registered its OWN OAuth App / GitHub App and you want
# the desktop binary to authenticate against those instead.
#
# Both apps must have "Enable Device Flow" checked on github.com.
# VITE_GITHUB_CLIENT_ID=
# VITE_GITHUB_APP_CLIENT_ID=
# VITE_GITHUB_APP_SLUG=