FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeforphilly-ng/.env.example at develop · CodeForPhilly/codeforphilly-ng · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
CodeForPhilly
/
codeforphilly-ng
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
0
Code
Issues
33
Pull requests
4
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeforphilly-ng
/
.env.example
Copy path
More file actions
More file actions
Latest commit
History
History
History
105 lines (82 loc) · 4.79 KB
Breadcrumbs
codeforphilly-ng
/
.env.example
Copy path
File metadata and controls
105 lines (82 loc) · 4.79 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#
codeforphilly-rewrite — local development environment
#
Copy this file to .env and fill in values for your machine.
#
Lines starting with # are comments. Never commit your .env.
#
---------------------------------------------------------------------------
#
Core
#
---------------------------------------------------------------------------
#
TCP port the Fastify API listens on.
PORT
=
3001
#
Runtime mode. Controls logger format, cookie Secure flag, CORS permissiveness.
#
One of: development | test | production
NODE_ENV
=
development
#
---------------------------------------------------------------------------
#
Public gitsheets data repo
#
---------------------------------------------------------------------------
#
Path to the codeforphilly-data working tree. Relative paths are resolved
#
from the API workspace dir (`apps/api/`) — prefer absolute paths in dev.
#
Bootstrap a fresh dev data repo with the sheet configs the API needs:
#
npm run -w apps/api script:setup-dev-data
#
(Uses this CFP_DATA_REPO_PATH; creates the directory + git repo + .gitsheets/<sheet>.toml.)
#
In production, point at a clone of https://github.com/CodeForPhilly/codeforphilly-data.
CFP_DATA_REPO_PATH
=
../codeforphilly-data
#
Git remote URL to push public data commits to. Optional in dev; required in prod.
#
This is the production private data repo — the public snapshot is published separately.
#
CFP_DATA_REMOTE=git@github.com:CodeForPhilly/codeforphilly-data.git
#
---------------------------------------------------------------------------
#
Private storage
#
---------------------------------------------------------------------------
#
Which private-storage backend to use. Use 'filesystem' for local dev.
#
One of: filesystem | s3
STORAGE_BACKEND
=
filesystem
#
Filesystem backend: path to the directory holding profiles.jsonl and passwords.jsonl.
#
Required when STORAGE_BACKEND=filesystem.
CFP_PRIVATE_STORAGE_PATH
=
./private-storage
#
S3 backend — only needed when STORAGE_BACKEND=s3.
#
S3_ENDPOINT=https://s3.us-east-1.amazonaws.com
#
S3_BUCKET=cfp-private-storage
#
S3_REGION=us-east-1
#
S3_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
#
S3_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
#
---------------------------------------------------------------------------
#
Auth
#
---------------------------------------------------------------------------
#
GitHub OAuth app credentials. Create one at https://github.com/settings/developers.
#
Callback URL for dev: http://localhost:3001/api/auth/github/callback
#
GITHUB_OAUTH_CLIENT_ID=Iv1.a1b2c3d4e5f6g7h8
#
GITHUB_OAUTH_CLIENT_SECRET=secret_abc123
#
HS256 signing key for session JWTs. Generate a random string ≥ 32 chars.
#
In production use a securely-generated secret; in dev any 32+ char string works.
CFP_JWT_SIGNING_KEY
=
change-me-to-a-random-string-at-least-32-chars
#
---------------------------------------------------------------------------
#
SAML IdP (Slack integration) — only needed in production
#
---------------------------------------------------------------------------
#
PEM-encoded private key for the SAML IdP certificate.
#
SAML_PRIVATE_KEY=-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----
#
PEM-encoded certificate matching SAML_PRIVATE_KEY.
#
SAML_CERTIFICATE=-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----
#
---------------------------------------------------------------------------
#
Static SPA serving (production only)
#
---------------------------------------------------------------------------
#
Absolute path to the built apps/web/dist directory. When set, the API
#
serves the SPA as a fallthrough for non-/api/* routes (single-image
#
deploy per specs/architecture.md). Leave unset in dev — Vite owns 5173.
#
CFP_WEB_DIST_PATH=/app/apps/web/dist
#
---------------------------------------------------------------------------
#
Markdown rendering
#
---------------------------------------------------------------------------
#
Public-facing host. Used by the server-side markdown renderer's
#
external-link transform — anchors with a host different from this one
#
get target="_blank" rel="noopener nofollow". See
#
specs/behaviors/markdown-rendering.md. Sandbox: next-v2.codeforphilly.org.
#
Production: codeforphilly.org (the default).
#
CFP_SITE_HOST=codeforphilly.org
#
---------------------------------------------------------------------------
#
Outbound notifications (Resend)
#
---------------------------------------------------------------------------
#
Resend API key for the help-wanted email notifier. When unset, the
#
notifier falls back to a no-op LoggingNotifier so dev + tests work
#
without an account. See plans/notifier-email.md.
#
RESEND_API_KEY=re_…
#
From-address for outbound notifications. RFC 5322 form.
#
Only used when RESEND_API_KEY is set.
#
CFP_NOTIFICATION_FROM="Code for Philly <notifications@codeforphilly.org>"
Back
|
FazBrowse Home
|
New Git URL