forked from neamm/auto.fun
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
117 lines (104 loc) · 6.75 KB
/
.env.example
File metadata and controls
117 lines (104 loc) · 6.75 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
JWT_SECRET=your_jwt_secret_here
# === Solana Configuration ===
MAINNET_SOLANA_RPC_URL=https://mainnet.helius-rpc.com/?api-key=your_api_key_here
DEVNET_SOLANA_RPC_URL=https://devnet.helius-rpc.com/?api-key=your_api_key_here
NETWORK=devnet # 'mainnet' or 'devnet'
PROGRAM_ID=your_program_id_here # Only needed if interacting with a specific program
DEVNET_PROGRAM_ID=your_devnet_program_id_here # Specific program ID for devnet
EXECUTOR_PRIVATE_KEY=[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]
HELIUS_WEBHOOK_AUTH_TOKEN=development # Secret key added in Helius webhook edit console to validate webhook
WEBHOOK_URL=http://localhost:8787/api/webhook # URL for receiving webhooks (e.g., Helius)
# === Vendor API Keys ===
CODEX_API_KEY=
FAL_API_KEY=
NEWS_API_KEY=your_news_api_key_here # For fetching news articles
# === Twitter API Keys ===
TWITTER_CLIENT_ID=your_twitter_client_id
TWITTER_API_KEY=your_twitter_api_key
TWITTER_API_SECRET=your_twitter_api_secret
TWITTER_ACCESS_TOKEN=your_twitter_access_token
TWITTER_ACCESS_TOKEN_SECRET=your_twitter_access_token_secret
TWITTER_BEARER_TOKEN=your_twitter_bearer_token
# === Server Configuration ===
PORT=8787 # Port the backend server listens on
NODE_ENV=development # 'development' or 'production'
API_URL=http://localhost:8787 # Backend API URL
CRON_URL= # URL to trigger cron jobs if applicable
CRON_SECRET= # Secret for securing cron job triggers
# === Database Configuration ===
# DATABASE_URL=postgresql://user:password@host:port/database # Production Example
# DEFAULT LOCAL (docker-compose): postgresql://autofun_owner:npg_2PDZgJfEtrh6@localhost:5432/autofun
DATABASE_URL=postgresql://autofun_owner:npg_2PDZgJfEtrh6@localhost:5432/autofun
# === Redis Configuration ===
# REDIS_HOST=your_redis_host
# REDIS_PORT=your_redis_port
# REDIS_PASSWORD=your_redis_password
# REDIS_URL=redis://user:password@host:port # Alternative connection string format
# DEFAULT LOCAL (docker-compose):
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=MDikUKnhRHlURlnORexvVztDTrNCUBze
REDIS_URL=redis://default:MDikUKnhRHlURlnORexvVztDTrNCUBze@localhost:6379 # Example for local compose
# === S3 Configuration (R2 Cloudflare or Local MinIO) ===
# --- Option 1: R2 Cloudflare (Production/Staging) ---
S3_ACCOUNT_ID=your_cloudflare_account_id
S3_ACCESS_KEY_ID=your_r2_access_key_id
S3_SECRET_ACCESS_KEY=your_r2_secret_access_key
S3_BUCKET_NAME=your_r2_bucket_name
S3_STORAGE_ENDPOINT=https://<account_id>.r2.cloudflarestorage.com # R2 Endpoint URL
PUBLIC_STORAGE_BASE_URL=https://your_public_r2_domain # Public URL for accessing bucket objects (e.g., via custom domain or r2.dev)
CLOUDFLARE_AUTH_EMAIL=your_cloudflare_email # Optional: For certain Cloudflare operations
# --- Option 2: Local MinIO (Development - docker-compose defaults) ---
# MINIO_ENDPOINT=http://localhost:9000 # Optional override
# MINIO_ACCESS_KEY=minio_user # Optional override
# MINIO_SECRET_KEY=minio_password # Optional override
# MINIO_BUCKET_NAME=autofun # Optional override
# S3_BUCKET_NAME=autofun # Ensure this matches your local bucket if using MinIO
# S3_STORAGE_ENDPOINT=http://localhost:9000 # MinIO Endpoint URL
# PUBLIC_STORAGE_BASE_URL=http://localhost:9000/autofun # Example public URL for local MinIO
# If R2 variables are NOT set, the application will default to MinIO values.
# Ensure the correct bucket name is set if using R2:
S3_BUCKET_NAME=autofun # SET THIS TO YOUR R2 BUCKET NAME IF USING R2
# === Token Defaults ===
VIRTUAL_RESERVES=28000000000 # 28 SOL (lamports) - Initial liquidity pool virtual SOL reserves
TOKEN_SUPPLY=1000000000000000 # 1 Quadrillion (atomic units) - Total supply of created tokens
DECIMALS=6 # Token decimals
CURVE_LIMIT=113000000000 # 113 SOL (lamports) - Bonding curve limit
PREGENERATED_TOKENS_COUNT=3 # number of tokens to pre-generate for people to use
FIXED_FEE=6 # 6 SOL - mainnet fee for token creation/operations
PRIMARY_LOCK_PERCENTAGE=90 # Percentage of LP tokens for the primary lock duration
SECONDARY_LOCK_PERCENTAGE=10 # Percentage of LP tokens for the secondary lock duration
# === Frontend Configuration ===
MAINNET_FRONTEND_URL=http://localhost:3000 # Frontend URL when backend is mainnet
DEVNET_FRONTEND_URL=http://localhost:3000 # Frontend URL when backend is devnet
ALLOWED_ORIGINS=http://localhost:3000,http://localhost:3001 # Comma-separated list of allowed CORS origins
# === Client Environment Variables (Prefixed with VITE_) ===
# These are exposed to the frontend application via Vite
VITE_METADATA_BASE_URL=https://metadata.auto.fun # Base URL for token metadata JSON files
VITE_IMAGE_OPTIMIZATION_URL=https://auto.fun/cdn-cgi/image # URL for Cloudflare image optimization service
VITE_EXAMPLE_IMAGE_URL=https://auto.fun/example.png # URL for a default/example image
VITE_ADMIN_ADDRESSES= # Client comma separated list of admin wallet addresses
VITE_CODEX_API_KEY= # Codex API key for frontend features (charts, holders)
VITE_BONDING_CURVE_ADDRESS= # Address of the bonding curve program/contract
VITE_DEVNET_RPC_URL=https://devnet.helius-rpc.com/?api-key=your_api_key_here # Devnet RPC URL for client-side use
VITE_MAINNET_RPC_URL=https://mainnet.helius-rpc.com/?api-key=your_api_key_here # Mainnet RPC URL for client-side use
VITE_RPC_URL=https://devnet.helius-rpc.com/?api-key=your_api_key_here # Default RPC URL used by client (can be overridden by network choice)
VITE_DECIMALS=6 # Token decimals (client-side)
VITE_SOLANA_NETWORK=devnet # 'mainnet' or 'devnet' - Default network for the client
VITE_API_URL=http://localhost:8787 # Backend API URL for client-side use
VITE_DEV_API_URL=http://localhost:8787 # Dev Backend API URL for client-side use
VITE_VIRTUAL_RESERVES=28000000000 # Initial virtual SOL reserves (client-side)
VITE_TOKEN_SUPPLY=1000000000000000 # Total token supply (client-side)
VITE_DEV_PROGRAM_ID=your_devnet_program_id_here # Devnet program ID (client-side)
VITE_PROGRAM_ID=your_program_id_here # Mainnet program ID (client-side)
VITE_S3_PUBLIC_URL=https://your_public_r2_domain # Public URL for S3/R2 assets (client-side)
VITE_DEV_ADDRESS=your_dev_address_here # Development specific address if needed
VITE_FEE_WALLET= # Wallet address receiving fees (client-side reference)
# === Server Admin Configuration ===
ADMIN_ADDRESSES= # Server comma separated list of admin wallet addresses
# === Multisig Configuration ===
MANAGER_MULTISIG_ADDRESS=your_manager_multisig_address # Address of the manager multisig wallet
ACCOUNT_FEE_MULTISIG=your_account_fee_multisig_address # Address of the multisig wallet collecting account fees
FEE_WALLET=your_fee_wallet_address # Default wallet address for receiving fees
# === Development Tools ===
NGROK_AUTH_TOKEN=your_ngrok_auth_token # Ngrok authentication token if using ngrok for tunneling