-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
27 lines (24 loc) · 1.2 KB
/
.env.example
File metadata and controls
27 lines (24 loc) · 1.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
# Google Analytics Configuration (Server-Side)
# Get these from: https://analytics.google.com/analytics/web/
# GA_MEASUREMENT_ID=G-XXXXXXXXXX
# GA_API_SECRET=your_api_secret_here
# Analytics Feature Toggle
# Set to 'true' to enable client-side Analytics component and automatic page view tracking.
# When disabled, the Analytics component is not rendered, avoiding unnecessary API requests.
# Even when enabled, analytics only works if GA_MEASUREMENT_ID and GA_API_SECRET are configured.
# NEXT_PUBLIC_ANALYTICS_ENABLED=true
# Site URL
NEXT_PUBLIC_SITE_URL=https://devakesu.com
# Client IP Detection
# The analytics API uses a priority-ordered approach to extract client IPs from headers:
# 1. cf-connecting-ip (Cloudflare CDN)
# 2. x-real-ip (nginx/Apache reverse proxy)
# 3. x-forwarded-for (various proxies/load balancers)
#
# PRODUCTION: Ensure your reverse proxy/CDN sets one of these headers and strips/overwrites
# any client-provided values to prevent IP spoofing.
#
# DEVELOPMENT: Set TEST_CLIENT_IP to simulate a specific client IP for testing rate limiting,
# geolocation, and other IP-based features (e.g., TEST_CLIENT_IP=203.0.113.45).
# If not set, defaults to 127.0.0.1 in development mode.
# TEST_CLIENT_IP=