-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.example
More file actions
51 lines (42 loc) · 1.82 KB
/
.env.example
File metadata and controls
51 lines (42 loc) · 1.82 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
# Environment variables for running the Rails app locally.
# Copy this file to `.env` and fill in the values. Do NOT commit your real secrets.
# --- Hack Club Auth (required) ---
# OAuth client credentials from auth.hackclub.com
IDENTITY_CLIENT_ID="your_client_id"
IDENTITY_CLIENT_SECRET="your_client_secret"
# --- Identity API (required for /api/verify) ---
# Base URL of Hack Club Auth API (used by the verify endpoint for server-to-server calls)
IDENTITY_URL="https://auth.hackclub.com"
# Program-level API key used by /api/verify to fetch identities
IDENTITY_PROGRAM_KEY="your_program_api_key"
# --- HelpScout Beacon (optional) ---
# Set to enable Beacon on all pages. Find these in Help Scout.
# Beacon ID from Beacon Builder
HELPSCOUT_BEACON_ID=""
# --- OAuth callback base URL (required) ---
# Public base URL of this Rails app; used to build redirect_uri for OAuth
# For local dev:
NEXTAUTH_URL="http://localhost:3000"
# --- Database (required for local dev unless DATABASE_URL is set) ---
PGHOST=localhost
PGPORT=5432
PGUSER=postgres
PGPASSWORD=postgres
PGDATABASE=submit_ruby_development
# Alternatively, provide a full URL in production:
# DATABASE_URL=postgres://user:password@host:5432/dbname
# --- Sentry (optional) ---
# Set to enable error reporting
# SENTRY_DSN=https://public_key@oXXXXXXX.ingest.us.sentry.io/XXXXXXX
# --- Host allowlist (recommended in production) ---
# Used to restrict allowed Host headers in production. Not required for local dev.
# APP_HOST=submit.example.com
# APP_HOST_ALT=www.submit.example.com
# --- Program form URL allowlist (optional) ---
# Comma-separated list of allowed hosts for Program#form_url validation.
# Example: only allow Airtable and Typeform
# FORM_URL_ALLOWED_HOSTS=airtable.com,hackclub.com
# --- Rails tuning (optional) ---
# RAILS_MAX_THREADS=5
# RAILS_ENV=development
# RACK_ENV=development