-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.env.example
More file actions
executable file
·96 lines (76 loc) · 3.82 KB
/
Copy path.env.example
File metadata and controls
executable file
·96 lines (76 loc) · 3.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
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
# shared vars => .env, dev => .env.development, prod => .env.production
# TODO: use the domain base here
PORT=3000 # default
# NITRO_PORT=5500 # same as PORT
DOMAIN_NAME=https://example.com
# TODO: new in May 11 2026
# NUXT_APP_BASE_URL=https://example.com
# I18n
NUXT_PUBLIC_I18N_BASE_URL=https://example.com
SOCKET_URL=wss://example.com
# NITRO_PRESET=node_cluster # todo: to cluster the app with multi-processing check Docs https://nuxt.com/docs/getting-started/deployment#cluster-mode
# MONGO_USER=Bader
# MONGO_PASSWORD=secretPassword
# MONGO_IP=mongo
# MONGO_DB_NAME=personal-portfolio
# MONGO_PORT=27017
# MONGO_URI=mongodb://${MONGO_USER}:${MONGO_PASSWORD}@${MONGO_IP}:${MONGO_PORT}/${MONGO_DB_NAME}?authSource=admin
# TODO: these {mongo,redis} with localhost worked on windows wsl, because the 200* didn't work in it!
# MONGO_URI=mongodb://Bader:myPassword@200.200.1.200:27017/portfolio?authSource=admin
MONGO_URI=mongodb://Bader:myPassword@localhost:27017/portfolio?authSource=admin
# REDIS_URL=redis://default:myPassword@200.200.2.200:6379
REDIS_URL=redis://default:myPassword@localhost:6379
MAIL_HOST=mail.example.com
MAIL_USER=contact@example.com
MAIL_PASS=somePassword
JWT_SECRET=somePassword
# zach says 2 weeks for prod!
JWT_LIFETIME=24h
# NODE_ENV=production/development
# this fixes errors with electron app
NUXT_PUBLIC_SITE_URL=example.com
# In prod
# DOMAIN_NAME=https://baderidris.com
# SOCKET_URL=wss://baderidris.com
# locally containerized
# DOMAIN_NAME=http://localhost:5000
# SOCKET_URL=ws://localhost:5000
# for production, you don't need these, only the NUXT_PUBLIC_ prepended ones!
# these are useful for devtools => scripts
GOOGLE_ANALYTICS_MEASUREMENT_ID=your-google-measureId
GOOGLE_TAG_MANAGER_ID=your-google-tag-manager-id
CLARITY_ID=your-microsoft-clarity-id
GOOGLE_CLIENT_ID=check=>https://console.cloud.google.com/
GOOGLE_CLIENT_SECRET=withItsId
FACEBOOK_CLIENT_ID=check=>https://developers.facebook.com/
FACEBOOK_CLIENT_SECRET=withItsId
# for web-push package! to send push notifications
CONTACT_EMAIL=your-email@example.com
VAPID_PUBLIC_KEY=generateThemUsingWebPushTool
VAPID_PRIVATE_KEY=generateThemUsingWebPushTool
# use these with prefix NUXT_PUBLIC_ for docker built images due to misuse of process.env with nuxt runtime vars in built images
NUXT_PUBLIC_SCRIPTS_GOOGLE_TAG_MANAGER_ID=your-google-tag-manager-id
NUXT_PUBLIC_SCRIPTS_GOOGLE_ANALYTICS_ID=your-google-measureId
NUXT_PUBLIC_SCRIPTS_CLARITY_ID=your-microsoft-clarity-id
# it's critical for prisma due to stupidity to remove the capsulating "" in prod, as var=val instead of var="val"
# In Docker, use the service name (postgres) and sslmode=disable if not using SSL
PSQL_URL="postgresql://postgres:example@postgres:5432/articles?schema=public&sslmode=disable"
# Locally (npm run dev), use localhost
# PSQL_URL="postgresql://postgres:example@localhost:5432/articles?schema=public&sslmode=disable"
# Force Bun to use Node.js v24 compatibility mode
BUN_NODE_COMPAT=24
# Secret for OG image signing (generate with: bunx nuxt-og-image generate-secret)
NUXT_OG_IMAGE_SECRET=your-secret-key-here
# Secret for Nuxt Scripts proxy signing (generate with: (npx|pnpm dlx) @nuxt/scripts generate-secret)
NUXT_SCRIPTS_PROXY_SECRET=your-scripts-proxy-secret-here
# Firebase / FCM Configuration
# Path to service account JSON file OR the JSON string itself
FCM_SERVICE_ACCOUNT=./service-accounts-private-key-portfolio-firebase-adminsdk.json
# Use refresh token to avoid file system dependencies (recommended for Docker/Cloud)
FIREBASE_REFRESH_TOKEN=your-firebase-refresh-token
FIREBASE_DATABASE_URL=https://your-project-id.firebaseio.com
# Apple Push Notification (APN) Configuration
APN_KEY=./path-to-your-apn-key.p8
APN_KEY_ID=your-apn-key-id
APN_TEAM_ID=your-apn-team-id
APN_BUNDLE_ID=com.example.app