-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathenv.sample
More file actions
160 lines (128 loc) · 6.22 KB
/
Copy pathenv.sample
File metadata and controls
160 lines (128 loc) · 6.22 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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
// External Authentication Configuration
NEXT_PUBLIC_AUTH_URI=https://auth.web3lancer.website
// Web3Lancer Platform Configuration
AUTH_SUBDOMAIN=accounts
APP_SUBDOMAIN=pay
APP_DOMAIN=web3lancer.website
// Appwrite Configuration
NEXT_PUBLIC_APPWRITE_ENDPOINT=https://fra.cloud.appwrite.io/v1
NEXT_PUBLIC_APPWRITE_PROJECT_ID=67aed8360001b6dd8cb3
# Appwrite API Key (Server-side only - for passkey authentication)
# Required permissions: users.read, users.write
APPWRITE_API_KEY=your-api-key-with-users-read-write-permission
# Alternative variable names supported:
# APPWRITE_API or APPWRITE_API_KEY
# Appwrite Project ID (alternative variable names)
# APPWRITE_PROJECT or NEXT_PUBLIC_APPWRITE_PROJECT_ID
# Passkey Configuration (for WebAuthn)
# RP (Relying Party) settings for passkey authentication
NEXT_PUBLIC_RP_ID=localhost
NEXT_PUBLIC_RP_NAME=Web3 Pay
NEXT_PUBLIC_ORIGIN=http://localhost:3000
# Legacy Passkey Function ID (no longer needed with API routes)
# NEXT_PUBLIC_PASSKEY_FUNCTION_ID=your-passkey-function-id
# Web3 Authentication Function ID (from ignore1/function_appwrite_web3)
NEXT_PUBLIC_WEB3_AUTH_FUNCTION_ID=your-web3-auth-function-id
# TableDB Database IDs (from appwrite.config.json)
# PayDB is the primary database for this application (with TablesDB)
NEXT_PUBLIC_PAYDB_ID=683a31960011608eaee5
NEXT_PUBLIC_COREDB_ID=682481e00032b7373ad0
NEXT_PUBLIC_PROFILESDB_ID=67b885280000d2cb5411
# Legacy database ID (deprecated - kept for migration compatibility)
NEXT_PUBLIC_APPWRITE_DB_ID=your-database-id
# Storage Bucket IDs (configured in appwrite.config.json)
# Pay App specific buckets
NEXT_PUBLIC_BUCKET_PAY_USER_ASSETS=pay_user_assets
NEXT_PUBLIC_BUCKET_PAY_APP_ASSETS=pay_app_assets
NEXT_PUBLIC_BUCKET_PAY_DOCUMENTS=pay_documents
# Shared ecosystem buckets
NEXT_PUBLIC_BUCKET_PROFILE_AVATARS=68271a49000952f46753
NEXT_PUBLIC_BUCKET_COVER_IMAGES=68271a5f000426c52bbe
NEXT_PUBLIC_BUCKET_VERIFICATION_DOCUMENTS=68271a72002d4f3121f9
# API Configuration
NEXT_PUBLIC_API_BASE_URL=https://api.example.com
NEXT_PUBLIC_DEFAULT_CURRENCY=USD
# Feature Flags
NEXT_PUBLIC_FEATURE_EXCHANGE=true
NEXT_PUBLIC_FEATURE_REQUESTS=true
# Legacy Collection IDs (deprecated - migrated to TableDB)
# NEXT_PUBLIC_APPWRITE_TABLE_USERS=users
# NEXT_PUBLIC_APPWRITE_TABLE_WALLETS=wallets
# NEXT_PUBLIC_APPWRITE_TABLE_TOKENS=tokens
# NEXT_PUBLIC_APPWRITE_TABLE_TRANSACTIONS=transactions
# NEXT_PUBLIC_APPWRITE_TABLE_PAYMENT_REQUESTS=payment_requests
# NEXT_PUBLIC_APPWRITE_TABLE_EXCHANGE_RATES=exchange_rates
NEXT_PUBLIC_APPWRITE_TABLE_SECURITY_LOGS=security_logs
NEXT_PUBLIC_APPWRITE_TABLE_API_KEYS=api_keys
NEXT_PUBLIC_APPWRITE_BUCKET_USER_ASSETS=user_assets
NEXT_PUBLIC_APPWRITE_BUCKET_APP_ASSETS=app_assets
NEXT_PUBLIC_APPWRITE_BUCKET_DOCUMENTS=documents
NEXT_PUBLIC_APPWRITE_BUCKET_BACKUPS=backups
NEXT_PUBLIC_APPWRITE_BUCKET_SYSTEM_LOGS=system_logs
NEXT_PUBLIC_APPWRITE_BUCKET_TEMP_FILES=temp_files
# Web2 Pay App Environment Configuration
# Bridge Configuration - Connect to Bless Network
BRIDGE_API_KEY=your-secure-bridge-api-key-here
NEXT_PUBLIC_BLESS_ENDPOINT=https://your-bless-function.blockless.network
# Enable Bless Network Integration
NEXT_PUBLIC_ENABLE_BLESS_NETWORK=true
NEXT_PUBLIC_BLESS_NETWORK_NAME=Bless Network
NEXT_PUBLIC_BLESS_CHAIN_ID=2026
# Default settings for Bless Network payments
NEXT_PUBLIC_DEFAULT_ESCROW_DURATION=30
NEXT_PUBLIC_AUTO_CREATE_ESCROW_FOR_FREELANCERS=true
# Web3Lancer Integration
NEXT_PUBLIC_WEB3LANCER_API_URL=https://api.web3lancer.website
# MEZO
# Mezo Network Selection (testnet or mainnet)
NEXT_PUBLIC_MEZO_NETWORK=testnet
# Mezo Testnet Configuration (Chain ID: 31611)
NEXT_PUBLIC_MEZO_RPC_TESTNET=https://rpc.test.mezo.org
NEXT_PUBLIC_MEZO_CHAIN_ID_TESTNET=31611
NEXT_PUBLIC_MEZO_EXPLORER_TESTNET=https://explorer.test.mezo.org/
# Mezo Mainnet Configuration (Chain ID: 31612)
NEXT_PUBLIC_MEZO_RPC_MAINNET=https://mainnet.mezo.public.validationcloud.io/
NEXT_PUBLIC_MEZO_CHAIN_ID_MAINNET=31612
NEXT_PUBLIC_MEZO_EXPLORER_MAINNET=https://explorer.mezo.org/
# Alternative Mezo RPC Providers (for fallback)
# Testnet alternatives: https://mezo-testnet.drpc.org
# Mainnet alternatives: https://rpc-http.mezo.boar.network, https://rpc_evm-mezo.imperator.co
# Mezo Smart Contract Addresses (Testnet)
NEXT_PUBLIC_MUSD_ADDRESS_TESTNET=0x118917a40FAF1CD7a13dB0Ef56C86De7973Ac503
NEXT_PUBLIC_TBRC_ADDRESS_TESTNET=0x517f2982701695D4E52f1ECFBEf3ba31Df470161
NEXT_PUBLIC_PORTAL_PROXY_TESTNET=0x6978E3e11b8Bc34ea836C1706fC742aC4Cb6b0Db
NEXT_PUBLIC_BITCOIN_DEPOSITOR_TESTNET=0x7205535961649C4F94e1b4BAfBe26d23e2bbDd84
NEXT_PUBLIC_BORROWER_OPS_ADDRESS_TESTNET=
# Mezo Smart Contract Addresses (Mainnet)
NEXT_PUBLIC_MUSD_ADDRESS_MAINNET=0xdD468A1DDc392dcdbEf6db6e34E89AA338F9F186
NEXT_PUBLIC_TBRC_ADDRESS_MAINNET=0x7b7C000000000000000000000000000000000000
NEXT_PUBLIC_PORTAL_PROXY_MAINNET=0xAB13B8eecf5AA2460841d75da5d5D861fD5B8A39
NEXT_PUBLIC_BITCOIN_DEPOSITOR_MAINNET=0x1D50D75933b7b7C8AD94dbfb748B5756E3889C24
NEXT_PUBLIC_BORROWER_OPS_ADDRESS_MAINNET=
# Mezo Feature Flags
NEXT_PUBLIC_MEZO_ENABLED=true
NEXT_PUBLIC_MEZO_CAPITAL_HUB_ENABLED=true
# Smart Contract Environment
# Only needed for contract deployment
MEZO_TESTNET_RPC_URL=https://rpc.test.mezo.org
MEZO_MAINNET_RPC_URL=https://mainnet.mezo.public.validationcloud.io/
PRIVATE_KEY=0
# Boar Network RPC Integration (for Mezo Testnet & Mainnet)
# Boar provides upgraded free tier access for Mezo Hackathon
# Testnet RPC endpoints
NEXT_PUBLIC_MEZO_RPC_BOAR_TESTNET_HTTPS=https://rpc-http.mezo.boar.network
NEXT_PUBLIC_MEZO_RPC_BOAR_TESTNET_WSS=wss://rpc-ws.mezo.boar.network
# Mainnet RPC endpoints
NEXT_PUBLIC_MEZO_RPC_BOAR_MAINNET_HTTPS=https://rpc-http.mezo.boar.network
NEXT_PUBLIC_MEZO_RPC_BOAR_MAINNET_WSS=wss://rpc-ws.mezo.boar.network
# Boar API Key (if required for premium features)
NEXT_PUBLIC_BOAR_API_KEY=
# Spectrum RPC Integration (for Mezo Testnet & Mainnet)
# Spectrum provides reliable, scalable RPC solutions with free premium access during hackathon
# Fill out Spectrum Access Form: https://spectrumnodes.gitbook.io/docs/user-guides/create-your-first-endpoint
# Testnet endpoint
NEXT_PUBLIC_MEZO_RPC_SPECTRUM_TESTNET=https://spectrum-01.simplystaking.xyz/aWxuZml5bXQtMDEtMWZmYjJlMGQ/c0_bvE1zqrJ95g/mezo/testnet/
# Mainnet endpoint
NEXT_PUBLIC_MEZO_RPC_SPECTRUM_MAINNET=
# Spectrum API Key (if required)
NEXT_PUBLIC_SPECTRUM_API_KEY=