-
Notifications
You must be signed in to change notification settings - Fork 141
Expand file tree
/
Copy path.env.docker-setup
More file actions
225 lines (182 loc) · 7.66 KB
/
Copy path.env.docker-setup
File metadata and controls
225 lines (182 loc) · 7.66 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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# Sparrow Service Versions
# For version updates, please refer to: https://hub.docker.com/repositories/sparrowapi
# Set to 'latest' for latest build or a specific version (2.29.0)
SPARROW_API_VERSION=2.29.0
SPARROW_AUTH_VERSION=2.29.0
SPARROW_PROXY_VERSION=2.29.0
SPARROW_WEB_VERSION=2.29.0
SPARROW_ADMIN_VERSION=2.29.0
#=========================================== Environment Sparrow Web ============================================================================
VITE_WEB_API_URL="http://localhost:9000"
VITE_WEB_SOCKET_IO_API_URL="http://localhost:9001"
VITE_WEB_SPARROW_SUPPORT_EMAIL="support@example.dev"
VITE_WEB_SPARROW_OAUTH="http://localhost:9000/api/auth/google/callback"
VITE_WEB_ENABLE_MIX_PANEL="false"
VITE_WEB_MIX_PANEL_TOKEN=""
VITE_WEB_TERMS_OF_SERVICE="https://example.dev/termsandconditions"
VITE_WEB_BASE_URL="http://localhost:9000"
VITE_WEB_API_TIMEOUT="5000"
VITE_WEB_AUTH_URL="http://localhost:1421"
VITE_WEB_SPARROW_GITHUB="https://github.com/sparrowapp-dev"
VITE_WEB_SPARROW_LINKEDIN="https://www.linkedin.com/showcase/sparrow-app/"
VITE_WEB_SPARROW_DOWNLOAD_LINK="https://github.com/sparrowapp-dev/sparrow-app/releases"
VITE_WEB_RELEASE_NOTES_PAT_TOKEN="dummy-1234567890"
VITE_WEB_RELEASE_NOTES_API="https://api.github.com/repos/sparrowapp-dev/sparrow-app/releases"
VITE_WEB_AZURE_INSIGHTS_CONNECTION_STRING=""
VITE_WEB_OPENFEEDBACK_API="dummy-1234567890"
VITE_WEB_OPENFEEDBACK_URL="https://openfeedback.sparrowapp.dev/api/v1"
VITE_WEB_MARKETING_URL="http://localhost:1429"
VITE_WEB_SPARROW_DOCS="https://docs.sparrowapp.dev/docs/intro"
VITE_WEB_PROXY_SERVICE="http://localhost:3000"
VITE_WEB_AZURE_CDN_URL="http://localhost:4500"
VITE_WEB_APP_ENVIRONMENT_PATH="local"
VITE_WEB_SPARROW_AI_WEBSOCKET="ws://localhost:9000/ai-assistant"
VITE_WEB_SENTRY_DSN=""
VITE_WEB_APP_ENVIRONMENT="LOCAL-FE"
VITE_WEB_SPARROW_WEB_APP_URL="http://localhost:1422"
VITE_WEB_SPARROW_ADMIN_URL="http://localhost:5173"
VITE_WEB_POSTHOG_API_URL=""
VITE_WEB_POSTHOG_CONNECTION_API_KEY=""
VITE_WEB_APP_EDITION="SELFHOSTED"
#=========================================== Environment Sparrow-API ============================================================================
# Required Sections:
# APP EDITION [REQUIRED]
# This setting determines the edition of the application. (MANAGED OR SELFHOSTED)
APP_EDITION=SELFHOSTED
# APP [REQUIRED]
# These settings configure the core application.
PORT=9000
APP_ENV=DEV
APP_URL=http://localhost:9000 # required for mock collection to work
# EMAIL [REQUIRED]
# These settings are required if you want to send emails from your application.
SMTP_ENABLED=true
SMTP_MAIL_SECURE=true
SMTP_SENDER_EMAIL=""
SMTP_SENDER_PASSWORD=""
SMTP_MAIL_HOST=smtp.sendgrid.net
SMTP_MAIL_PORT=465
SMTP_USER_NAME=""
# AUTH [REQUIRED]
# These settings handle authentication and authorization.
JWT_SECRET_KEY=webtoken-secret-key
# Absolutely do not share this publicly.
JWT_EXPIRATION_TIME=2400
# DATABASE [REQUIRED]
# These settings configure the database connection.
DB_NAME=sparrow
# SELF HOST ADMIN EMAIL [REQUIRED]
# This email will be used for admin to register new users.
SELF_HOST_ADMIN_EMAIL=sparrow-admin@yopmail.com
SELF_HOST_ADMIN_PASSWORD=sparrow-admin-password
# Instructions on how to set the DB server depending on your setup (standalone).
DB_URL=mongodb://sparowapp:sparrow123@mongo:27017
# Otherwise (if DB is running directly on your machine or on a different host), use:
# DB_URL=mongodb://sparowapp:sparrow123@localhost:27017 # Or replace with the actual hostname/IP of your DB Server
# Optional Sections:
# Google OAuth [OPTIONAL]
# These settings are required if you want to enable login with Google OAuth.
ENABLE_GOOGLE_AUTH=false
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_APP_URL=http://localhost:1422
LOGIN_REDIRECT_URL=http://localhost:1421/redirect
GOOGLE_ACCESS_TYPE=offline
# EXPIRY TIME FOR EMAIL VALIDATION CODE/LINK [OPTIONAL]
EMAIL_VALIDATION_CODE_EXPIRY_TIME=604800
# REFRESH TOKEN [OPTIONAL]
# These settings are required if you want to enable refresh tokens for user sessions.
REFRESH_TOKEN_SECRET_KEY=refresh-token-secret # Absolutely do not share this publicly.
REFRESH_TOKEN_EXPIRATION_TIME=604800
REFRESH_TOKEN_MAX_LIMIT=50
# APP UPDATER [OPTIONAL]
# These settings are required if you want your application to check for updates automatically.
APP_UPDATE_AVAILABLE=false
APP_VERSION=
WINDOWS_APP_SIGNATURE=
WINDOWS_APP_URL=
MAC_APPLE_SILICON_APP_SIGNATURE=
MAC_APPLE_SILICON_APP_URL=
MAC_INTEL_APP_SIGNATURE=
MAC_INTEL_APP_URL=
# SUPPORT [OPTIONAL]
SPARROW_EMAIL=contactus@sparrowapp.dev
# Auth
AUTH_BASE_URL=http://localhost:1421 # Required for auth website redirect to work
# Marketing
MARKETING_BASE_URL=http://localhost:1422
# AZURE SERVICES [OPTIONAL]
# Settings for Azure integration.
AZURE_CONNECTION_STRING=
AZURE_INSIGHTS_CONNECTION_STRING=
FEEDBACK_BLOB_CONTAINER=
# AI SUPPORT [OPTIONAL]
# Settings for Azure OpenAI integration.
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_DEPLOYMENT=
AZURE_OPENAI_API_VERSION=
AZURE_OPENAI_MAX_TOKENS=
AZURE_OPENAI_MONTHLY_TOKEN_LIMIT=
AZURE_OPENAI_ASSISTANT_ID=
DEEPSEEK_ENDPOINT=
DEEPSEEK_API_KEY=
DEEPSEEK_API_VERSION=
# Hubspot [OPTIONAL]
# Settings for Hubspot Integration
HUBSPOT_BASEURL=
HUBSPOT_INTEGRATION_ENABLED=
HUBSPOT_PORTALID=
HUBSPOT_FORMID=
#SPARROW DOCS SUBSCRIBE
BEEHIIV_API_KEY=
BEEHIIV_PUBLICATION_ID=
#USER
WHITELIST_USER_EMAILS=
#SENTRY KEY
SENTRY_DSN_KEY=
SENTRY_APP_ENVIRONMENT=
#STRIPE
STRIPE_WEBHOOK=
STRIPE_PUBLISHABLE_KEY=
STRIPE_SECRET_KEY=
#=========================================== Environment Sparrow-Auth ============================================================================
# ========================================================
# REQUIRED CONFIGURATION (Frontend Essentials)
# ========================================================
# [APP EDITION]
VITE_APP_EDITION=SELFHOSTED
# [API CONFIGURATION]
VITE_API_URL="http://localhost:9000" # Base URL for API requests
# [APPLICATION URLS]
VITE_SPARROW_WEB_URL="http://localhost:1422" # Primary application URL
VITE_SPARROW_ADMIN_URL="http://localhost:5173"
# ========================================================
# OPTIONAL CONFIGURATION (Feature Enablement)
# ========================================================
# [SUPPORT & LEGAL]
VITE_SPARROW_SUPPORT_EMAIL="support@example.dev" # Email for user support inquiries
VITE_TERMS_OF_SERVICE="https://example.dev/termsandconditions" # Terms of Service URL
VITE_SPARROW_PRIVACY_POLICY="https://example.com/privacy-policy" # Privacy Policy URL
# [OAUTH CONFIGURATION]
VITE_SPARROW_OAUTH="http://localhost:9000/api/auth/google/callback" # Google OAuth callback URL
# [ANALYTICS]
VITE_ENABLE_MIX_PANEL="false" # Enable/disable Mixpanel analytics
VITE_MIX_PANEL_TOKEN="" # Mixpanel project token (if enabled)
# [MARKETING]
VITE_SPARROW_MARKETING_URL="http://localhost:1452" # Marketing website URL
# [USER FEEDBACK]
VITE_OPENFEEDBACK_FEEDBACK_URL="https://openfeedback.sparrowapp.dev/feedback" # Openfeedback feedback portal
# [CONTACT SALES]
VITE_SPARROW_CONTACT_SALES_URL=""
#=========================================== Environment Sparrow-Admin ============================================================================
VITE_SPARROW_LAUNCH_URL=http://localhost:1422
VITE_API_BASE_URL=http://localhost:9000
VITE_LOGIN_REDIRECT=http://localhost:1421/init?source=admin
VITE_SPARROW_DOCS_URL=https://docs.sparrowapp.dev/docs/intro
VITE_ENVIRONMENT=development
VITE_SPARROW_MARKETING_URL=https://sparrowapp.dev
VITE_APP_EDITION=SELFHOSTED
#=========================================== Environment Mongo-DB ============================================================================
MONGO_INITDB_ROOT_USERNAME=sparowapp
MONGO_INITDB_ROOT_PASSWORD=sparrow123