-
Notifications
You must be signed in to change notification settings - Fork 4
/
.env.example
197 lines (161 loc) · 5.31 KB
/
.env.example
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
# export RAILS_ENV=development
## Host
export DEFAULT_HOST=https://compass.chaoss.org
## Puma
# export PORT=3000
# export PIDFILE=tmp/pids/server.pid
## Workers and threads count
# export WEB_CONCURRENCY=2
# export RAILS_MAX_THREADS=5
# export RAILS_MIN_THREADS=5
## Mariadb
export MARIADB_PORT=3306
export MARIADB_USER=compass-web-service
export MARIADB_PASSWORD=123456
export MARIADB_DB=compass-web-service
export MARIADB_POOL=100
## RabbitMQ
export MQ_CONNECTION=amqp://admin:admin@localhost
## Redis URL
export REDIS_URL=redis://redis:6379/1
export REDIS_CHANNEL_PREFIX=compass-web-service
## Riak Host
export RIAK_HOST=192.168.240.31
export RIAK_PORT=8087
## Action cable
# export ACTION_CABLE_URL=ws://localhost:28080
# export ACTION_CABLE_ALLOWED_REQUEST_ORIGINS=http:\/\/localhost*
# Examples:
# http:\/\/localhost*
# http:\/\/example.*,https:\/\/example.*
## Admin web
export ADMIN_WEB_USERNAME=sidekiq-web-dashboard
export ADMIN_WEB_PASSWORD=sidekiq-web-123
export ADMIN_WEB_TOKEN=
export ADMIN_SLACK_WEBBHOOK=
## Secret keys
# You can use `rake secret` command to generate a secret key
export DEVISE_JWT_SECRET_KEY=my-jwt-secret-key
## Opensearch
export OPENSEARCH_URL=http://localhost:9200
export OPENSEARCH_USER=user
export OPENSEARCH_PASS=pass
## Celery Server
export CELERY_SERVER=http://localhost:8000
export METRICS_OUT_INDEX=github_top_model
## WebHook
export HOOK_PASS=password
export WORKFLOW_REPO_NAME=compass-project-template
export GITEE_WORKFLOW_REPO=https://gitee.com/edmondfrank/compass-project-template
export GITHUB_WORKFLOW_REPO=https://github.com/EdmondFrank/compass-project-template
## Robot
export GITEE_API_TOKEN=robot_api_access_token
export GITHUB_API_TOKEN=robot_api_access_token
## Proxy
export PROXY=http://127.0.0.1:10807
## OmniAuth gitee
export GITEE_CLIENT_ID=gitee_client_id
export GITEE_CLIENT_SECRET=gitee_client_secret
export GITEE_SCOPE='user_info'
## OmniAuth github
export GITHUB_CLIENT_ID=github_client_id
export GITHUB_CLIENT_SECRET=github_client_secret
export GITHUB_SCOPE='user'
## OmniAuth slack
export SLACK_CLIENT_ID=slack_client_id
export SLACK_CLIENT_SECRET=slack_client_secret
export SLACK_CLIENT_JWK_SIGNING_KEY=slack_client_jwk_signing_key
export SLACK_SCOPE='openid email profile'
export SLACK_API_TOKEN=slack_api_token
## OmniAuth wechat
export WECHAT_CLIENT_ID=wechat_client_id
export WECHAT_CLIENT_SECRET=wechat_client
export WECHAT_SCOPE=snsapi_base
export WECHAT_TOKEN=wechat_token
export WECHAT_SUBSCRIBE_LINK=https://compass.gitee.com/settings/profile
# Mail
export MAIL_HOST=smtp.163.com
export MAIL_PORT=465
export MAIL_SSL=true
export MAIL_SECURE=true
export MAIL_USER=mail_user
export MAIL_FROM=mail_from
export MAIL_PASSWORD=mailing_password
export MAIL_TIMEOUT=15
## Yahoo Template
# export MAIL_HOST=smtp.mail.yahoo.com
# export MAIL_PORT=465
# export MAIL_SSL=true
# export MAIL_SECURE=true
# export MAIL_AUTH=plain
# export MAIL_USER=mail_user
# export MAIL_FROM=mail_from
# export MAIL_PASSWORD=mailing_password
# export MAIL_TIMEOUT=15
## Gmail Template
# export MAIL_HOST=smtp.gmail.com
# export MAIL_PORT=587
# export MAIL_SSL=false
# export MAIL_SECURE=true
# export MAIL_AUTH=plain
# export MAIL_USER=mail_user
# export MAIL_FROM=mail_from
# export MAIL_PASSWORD=mail_application_specific_password ## https://support.google.com/accounts/answer/185833?sjid=16410464921634023198-AP
# export MAIL_TIMEOUT=15
# Email limit
export MAX_EMAIL_CHANGE_COUNT=3
# Send Email limit
export MAX_SEND_EMAIL_COUNT=3
## S3 Storage
export S3_ENDPOINT=https://aws
export S3_ACCESS_KEY_ID=your_access_key_id
export S3_SECRET_KEY=your_secret_key
export S3_REGION=us-east
export S3_BUCKET=your_bucket_name
## Kafka Censoring
export KAFKA_SERVERS=127.0.0.1:9092
export KAFKA_ACKS=1
export KAFKA_USERNAME=username
export KAFKA_PASSWORD=password
export KAFKA_MECHANISM=SCRAM-SHA-256
## Censoring flag
export CENSORING_ENABLE=false
# ThirdParty callback
export THIRD_PARTY_CALLBACK_ENABLE=false
export THIRD_PARTY_CALLBACK_TOKEN='token'
export THIRD_PARTY_CALLBACK_URL=http://localhost:8080
export THIRD_PARTY_CALLBACK_ORIGINS=['gitee']
# Notification
export NOTIFICATION_URL=https://oss-compass.org
export NOTIFICATION_ZH_URL=https://compass.gitee.com
export NOTIFICATION_ANALYZE_URL=/analyze
export NOTIFICATION_ABOUT_URL=/docs/community
export NOTIFICATION_SUBSCRIPTION_URL=/settings/subscribe
export NOTIFICATION_EXPLORE_URL=/explore
# Notification Wechat Template
export NOTIFICATION_WECHAT_ACCOUNT_BIND_TEMPLATE_ID=OPENTM415757701
export NOTIFICATION_WECHAT_REPORT_GENERATE_TEMPLATE_ID=OPENTM407521893
export NOTIFICATION_WECHAT_REPORT_SUBSCRIPTION_UPDATE_TEMPLATE_ID=OPENTM412612104
# CI Bots
export BOT_NAME=compass-bot
export BOT_EMAIL=compass-bot@gitee.com
# OpenTelemetry
export OTEL_EXPORTER=otlp
export OTEL_SERVICE_NAME=CompassSAAS
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
export OTEL_RESOURCE_ATTRIBUTES=application=compass-web-service
# Lab
export LAB_MODEL_TRIGGER_COUNT=5
# Safelist
export SAFELIST_IPS=5.6.7.0/24,192.168.1.0/24
# Protected Reports
export RESTRICTED_LABEL_LIST=oss-compass
export RESTRICTED_LABEL_VIEWERS=2
# other servers
export ECHARTS_SERVER=http://127.0.0.1:8084
# tpc tool servers
export TPC_SERVICE_API_ENDPOINT = http://127.0.0.1:8082
export TPC_SERVICE_API_USERNAME = username
export TPC_SERVICE_API_PASSWORD = password
export OH_TPC_REPO = repo_url
export OH_TPC_REPO_TOKEN = token