企业微信
This commit is contained in:
1 parent
46ac70f4c5
commit
a9fc852abb
33 files changed
+4875
-106
No files matched your search
@@ -0,0 +1,72 @@
|
||||
# hxops backend production environment template
|
||||
# Usage:
|
||||
# 1) Copy this file to backend/.env
|
||||
# 2) Replace placeholder values
|
||||
# 3) Restart backend service
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Core
|
||||
# -----------------------------------------------------------------------------
|
||||
SECRET_KEY=replace-with-strong-random-secret
|
||||
DATABASE_URL=postgresql://<db_user>:<db_password>@<db_host>:5432/<db_name>
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Dify
|
||||
# -----------------------------------------------------------------------------
|
||||
DIFY_API_BASE=https://api.dify.ai/v1
|
||||
DIFY_API_KEY=replace-with-default-dify-api-key
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Redis
|
||||
# -----------------------------------------------------------------------------
|
||||
REDIS_URL=redis://:<redis_password>@<redis_host>:6379/0
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Feature switches
|
||||
# -----------------------------------------------------------------------------
|
||||
FEEDBACK_ENABLED=true
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Optional integrations
|
||||
# -----------------------------------------------------------------------------
|
||||
HR_WORKFLOW_IFRAME_URL=https://<your-hr-workflow-url>
|
||||
HR_WORKFLOW_API_BASE=https://<your-hr-workflow-api-base>
|
||||
HR_WORKFLOW_API_KEY=
|
||||
|
||||
INTEGRATION_API_BASE=https://<your-integration-api-base>
|
||||
INTEGRATION_API_KEY=
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# WeCom OAuth
|
||||
# -----------------------------------------------------------------------------
|
||||
WECOM_ENABLED=true
|
||||
WECOM_CORP_ID=wwxxxxxxxxxxxxxxxx
|
||||
WECOM_AGENT_ID=1000001
|
||||
WECOM_SECRET=replace-with-wecom-app-secret
|
||||
WECOM_REDIRECT_URI=https://<your-domain>/workspace
|
||||
# Optional: public HTTPS origin for WeCom console URLs (admin copy helper). Overrides notify base and request host when set.
|
||||
WECOM_PUBLIC_BASE_URL=https://<your-domain>
|
||||
|
||||
# Login strategy:
|
||||
# - Match existing local account first.
|
||||
# - If no match, block login and require admin provision/binding.
|
||||
WECOM_AUTO_CREATE_USER=false
|
||||
WECOM_MATCH_RULES=employee_id,mobile
|
||||
WECOM_MATCH_OPERATOR=AND
|
||||
|
||||
# Employee id source options:
|
||||
# - userid (default)
|
||||
# - extattr:<name> (from WeCom custom attributes)
|
||||
# - any direct field name returned by user/get
|
||||
WECOM_EMPLOYEE_ID_SOURCE=userid
|
||||
WECOM_MOBILE_NORMALIZE=true
|
||||
WECOM_CALLBACK_TOKEN=
|
||||
WECOM_ENCODING_AES_KEY=
|
||||
WECOM_CALLBACK_URL=https://<your-domain>/api/user/wecom/callback
|
||||
WECOM_HOMEPAGE_URL=https://<your-domain>/workspace
|
||||
WECOM_TRUSTED_DOMAIN=<your-domain>
|
||||
|
||||
# WeCom notify/deeplink
|
||||
WECOM_NOTIFY_ENABLED=true
|
||||
WECOM_NOTIFY_BASE_URL=https://<your-domain>
|
||||
WECOM_NOTIFY_EVENTS=permission_request_approved,permission_request_rejected,permission_batch_updated,task_completed
|
||||
Reference in new issue
Block a user