-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.example
More file actions
49 lines (41 loc) · 2 KB
/
Copy pathenv.example
File metadata and controls
49 lines (41 loc) · 2 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
# ──────────────────────────────────────────────────────
# GrantOS API — Environment Variables
# Copy this file to .env and fill in your values.
# NEVER commit .env to git.
# ──────────────────────────────────────────────────────
# Server
PORT=3001
NODE_ENV=development
# PostgreSQL
DB_HOST=localhost
DB_PORT=5433
DB_USERNAME=grantos
DB_PASSWORD=your_db_password
DB_NAME=grantos_service
DB_SYNCHRONIZE=true # true in dev only — use migrations in prod
# ── GitHub OAuth ──────────────────────────────────────
# 1. Go to https://github.com/settings/developers
# 2. Create a new OAuth App
# 3. Set the "Authorization callback URL" to your GITHUB_CALLBACK_URL below
# 4. Copy Client ID and Client Secret
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_CALLBACK_URL=https://your-api.com/api/v1/identity/callback
# ── Oracle Wallet (EAS Attestation on Arbitrum) ──────
# Private key of a wallet funded with ETH on Arbitrum One.
# This wallet signs and submits EAS attestations on-chain.
ORACLE_PRIVATE_KEY=
# EAS contract addresses on Arbitrum One (mainnet):
EAS_CONTRACT_ADDRESS=0xbD75f629A22Dc1ceD33dDA0b68c546A1c035c458
# Schema Registry: 0x7b24C7f8AF365B4E308b6acb0A7dfc85d034Cb3f
# Register your schema first, then paste the UID here:
# Schema: "address walletAddress, string githubLogin, uint256 githubId,
# uint256 githubCreatedYear, uint256 accountAgeSeconds, uint256 publicRepos,
# uint256 totalStars, uint256 followers, uint256 commitCount,
# uint256 contributionEvents90d, uint256 publicGists, string[] languages,
# string[] orgs, string contributionTier"
EAS_SCHEMA_UID=
# Arbitrum One RPC
ARBITRUM_RPC_URL=https://arb1.arbitrum.io/rpc
# Frontend URL (for CORS + OAuth redirect)
FRONTEND_URL=http://localhost:3000