forked from SafariDesk-OS/Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
92 lines (79 loc) · 2.79 KB
/
.env.example
File metadata and controls
92 lines (79 loc) · 2.79 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
# Django
DEBUG=False
SECRET_KEY=your-random-secret-key
# Database (PostgreSQL required for AI/RAG features)
DB_ENGINE=django.db.backends.postgresql
DB_NAME=safaridesk
DB_USER=postgres
DB_PASSWORD=your-db-password
DB_HOST=db
DB_PORT=5432
POSTGRES_DB=safaridesk
POSTGRES_USER=postgres
POSTGRES_PASSWORD=your-db-password
# Redis
REDIS_URL=redis://redis:6379
REDIS_HOST=redis
REDIS_PORT=6379
CELERY_BROKER_URL=redis://redis:6379/0
CELERY_RESULT_BACKEND=redis://redis:6379/0
# Files & Media
MEDIA_ROOT=/mnt
MEDIA_URL=/uploads/
FILE_URL=https://api.yourdomain.com/uploads/files
FILE_BASE_URL=https://yourdomain.com/files
AVATARS_URL=https://api.yourdomain.com/uploads/avatars
TASK_FILE_URL=https://api.yourdomain.com/uploads/task-files
KB_IMAGE_URL=https://api.yourdomain.com/uploads/kb/images
# URLs
FRONTEND_URL=https://helpdesk.yourdomain.com/tickets/
FRONTEND_URL_BASE=https://helpdesk.yourdomain.com
DOMAIN_NAME=yourdomain.com
# Email (SMTP)
EMAIL_HOST=smtp.yourprovider.com
EMAIL_PORT=587
EMAIL_USE_TLS=True
EMAIL_HOST_PASSWORD=your-email-password
DEFAULT_FROM_NAME=SafariDesk Support
# Superuser (created on first run)
SUPERUSER_USERNAME=admin
SUPERUSER_PASSWORD=Admin@12345
SUPERUSER_FIRST_NAME=Admin
SUPERUSER_LAST_NAME=User
SUPERUSER_PHONE_NUMBER=+1234567890
# Core User (system user)
CORE_USERNAME=system
CORE_PASSWORD=System@12345
CORE_FIRST_NAME=System
CORE_LAST_NAME=User
CORE_PHONE_NUMBER=+1234567890
# AI (Gemini)
GEMINI_API_KEY=your-gemini-api-key
GEMINI_MODEL=gemini-flash-latest
EMBEDDING_MODEL=gemini-embedding-001
# Google OAuth (Gmail integration)
GOOGLE_OAUTH_CLIENT_ID=your-google-client-id.apps.googleusercontent.com
GOOGLE_OAUTH_CLIENT_SECRET=your-google-client-secret
GOOGLE_OAUTH_REDIRECT_URI=https://api.yourdomain.com/api/v1/settings/mail/integrations/google/callback/
# Microsoft OAuth (Outlook integration)
MICROSOFT_OAUTH_CLIENT_ID=your-microsoft-client-id
MICROSOFT_OAUTH_CLIENT_SECRET=your-microsoft-client-secret
MICROSOFT_OAUTH_TENANT=your-tenant-id
MICROSOFT_OAUTH_REDIRECT_URI=https://api.yourdomain.com/settings/mail/integrations/microsoft/callback/
# Mailgun (inbound email)
MAILGUN_API_KEY=your-mailgun-api-key
MAILGUN_SIGNING_KEY=your-mailgun-signing-key
SAFARIDESK_FORWARDING_DOMAIN=mail.yourdomain.com
# Mail Integration
SECRET_ENCRYPTION_KEY=your-fernet-encryption-key
MAIL_INTEGRATION_OAUTH_SUCCESS_URL=https://helpdesk.yourdomain.com/settings/email?status=success
MAIL_INTEGRATION_OAUTH_ERROR_URL=https://helpdesk.yourdomain.com/settings/email?status=error
# Frontend (Vite)
VITE_API_URL=http://localhost:8100/api/v1
VITE_WS_NOTIFICATIONS_URL=ws://localhost:8101/ws/notifications/
VITE_CHAT_WS_BASE=ws://localhost:8101
VITE_SITE_URL=http://localhost:8000/site