forked from OpenCSGs/csghub-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.toml.example
More file actions
270 lines (233 loc) · 6.83 KB
/
config.toml.example
File metadata and controls
270 lines (233 loc) · 6.83 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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
saas = false
oversea = false
instance_id = ""
enable_swagger = false
enable_https = false
api_token = "f3a7b9c1d6e5f8e2a1b5d4f9e6a2b8d7c3a4e2b1d9f6e7a8d2c5a7b4c1e3f5b8a1d4f9b7d6e2f8a5d3b1e7f9c6a8b2d1e4f7d5b6e9f2a4b3c8e1d7f995hd82hf"
lbs_service_key = "123456"
city_to_cdn_domain = {}
docs_host = "http://localhost:6636"
[api_server]
port = 8080
public_domain = "http://localhost:8080"
ssh_domain = "git@localhost:2222"
[mirror]
url = "http://localhost:8085"
token = ""
port = 8085
session_secret_key = "mirror"
proxy_url = ""
worker_number = 5
part_size = 100
lfs_concurrency = 5
[database]
driver = "pg"
dsn = "postgresql://postgres:postgres@localhost:5433/starhub_server?sslmode=disable"
timezone = "Asia/Shanghai"
[redis]
endpoint = "localhost:6379"
max_retries = 3
min_idle_connections = 0
user = ""
password = ""
sentinel_mode = false
sentinel_master = ""
sentinel_endpoint = ""
[git_server]
url = "http://localhost:3000"
type = "gitaly"
host = "http://localhost:3000"
secret_key = "619c849c49e03754454ccd4cda79a209ce0b30b3"
username = "root"
password = "password123"
timeout_sec = 5
[gitaly_server]
address = "tcp://gitaly:8075"
storage = "default"
token = "abc123secret"
jwt_secret = "signing-key"
[mirror_server]
enable = true
url = "http://localhost:3000"
type = "gitea"
host = "http://localhost:3000"
secret_key = "619c849c49e03754454ccd4cda79a209ce0b30b3"
username = "root"
password = "password123"
[frontend]
url = "https://opencsg.com"
[s3]
access_key_id = "H0xkbJj7e86gv2tJYucv"
access_key_secret = "KNmbQNkgxUYwKarIPHeKXAWWgrjTp4fPt0PykXsG"
region = ""
endpoint = "localhost:9000"
bucket = "opencsg-test"
enable_ssl = false
public_bucket = "opencsg-public-resource"
[sensitive_check]
enable = false
access_key_id = ""
access_key_secret = ""
region = ""
endpoint = "oss-cn-beijing.aliyuncs.com"
enable_ssl = true
[jwt]
signing_key = "signing-key"
valid_hour = 24
[space]
public_docker_reg_base="opencsg-registry.cn-beijing.cr.aliyuncs.com"
builder_endpoint = "http://localhost:8081"
runner_endpoint = "http://localhost:8082"
runner_server_port = 8082
internal_root_domain = "internal.example.com"
public_root_domain = "public.example.com"
docker_reg_base = "registry.cn-beijing.aliyuncs.com/opencsg_public/"
image_pull_secret = "opencsg-pull-secret"
rproxy_server_port = 8083
session_secret_key = "secret"
deploy_timeout_in_min = 30
gpu_model_label = "aliyun.accelerator/nvidia_name"
readiness_delay_seconds = 120
readiness_period_seconds = 10
readiness_failure_threshold = 3
pypi_index_url = ""
[model]
deploy_timeout_in_min = 60
download_endpoint = "https://hub.opencsg.com"
docker_reg_base = "opencsg-registry.cn-beijing.cr.aliyuncs.com/public/"
nim_docker_secret_name = "ngc-secret"
nim_ngc_secret_name = "nvidia-nim-secrets"
[search]
repo_search_cache_ttl = 300
repo_search_limit = 2000
[event]
sync_interval = 1
[casdoor]
client_id = "client_id"
client_secret = "client_secret"
endpoint = "http://localhost:80"
certificate = "/etc/casdoor/certificate.pem"
organization_name = "opencsg"
application_name = "opencsg"
[nats]
url = "nats://natsadmin:AkxjzcHaK4uRqInuPRLeoUYYV5xYKIWv3jlzCehgoe@127.0.0.1:4222"
msg_fetch_timeout_in_sec = 5
[accounting]
host = "http://localhost"
port = 8086
charging_enable = false
[user]
host = "http://localhost"
port = 8088
signin_success_redirect_url = "http://localhost:3000/server/callback"
codesouler_vscode_redirect_url = "http://127.0.0.1:37678/callback"
codesouler_jetbrains_redirect_url = "http://127.0.0.1:37679/callback"
[multi_sync]
saasApiDomain = "https://hub.opencsg.com"
saasSyncDomain = "https://sync.opencsg.com"
defaultRepoCountLimit = 10
defaultSpeedLimit = 1024
defaultTrafficLimit = 1024
# Uncomment and set if the multi-sync feature is enabled
# enabled = false
refresh_account_sync_quota_cron_expression = "0 0 * * *"
[telemetry]
enable = true
reportUrl = "http://hub.opencsg.com/api/v1/telemetry"
[dataset]
promptMaxJsonlFileSize = 1048576 # 1MB
# default true
allowCreatePublicDataset = true
[dataflow]
host = "http://127.0.0.1"
port = 8000
[moderation]
host = "http://localhost"
port = 8089
encodedSensitiveWords = "5Lmg6L+R5bmzLHhpamlucGluZw=="
[memory]
enabled = false
host = "http://localhost"
port = 8085
base_path = "/api/v2"
api_key = ""
timeout_seconds = 10
retry_count = 1
retry_delay_millis = 100
[workflow]
endpoint = "localhost:7233"
[cron_job]
sync_as_client_cron_expression = "0 * * * *"
calc_recom_score_cron_expression = "0 1 * * *"
mirror_cron_expression = "* * * * *"
public_model_repo_cron_expression = "* * * * *"
glama_crawl_cron_expression = "0 1 * * *"
[dataviewer]
host = "http://localhost"
port = 8093
[proxy]
hosts = ["opencsg.com", "sync.opencsg.com"]
[instrumentation]
otlp_endpoint = "http://localhost:4317"
otlp_logging = false
[runner]
public_domain = "http://localhost:8082"
image_builder_cluster_id = ""
image_builder_git_image = "opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsg_public/alpine/git:2.36.2"
image_builder_kaniko_image = "opencsg-registry.cn-beijing.cr.aliyuncs.com/public/kaniko-project-executor:v1.23.2"
image_builder_job_ttl = 120
image_builder_status_ttl = 300
# Kaniko arguments to configure logging and registry access.
# See official flags: https://github.com/GoogleContainerTools/kaniko?tab=readme-ov-file#additional-flags
# --log-format=json : Output logs in JSON format for structured parsing.
# --log-timestamp=true : Include timestamps in log entries.
# --insecure : Allow connections to HTTP registries (non-HTTPS).
# --skip-tls-verify : Disable TLS certificate validation for registries.
# Uncomment the following line to enable pull images from a private registry without https
# image_builder_kaniko_args = ["--insecure", "--skip-tls-verify"]
STARHUB_SERVER_GPU_MODEL_LABEL = '[{"type_label": "aliyun.accelerator/nvidia_name", "capacity_label": "nvidia.com/gpu"}]'
system_cuda_version = ""
webhook_endpoint = "http://localhost:8080"
watch_configmap_name = "spaces-runner-config"
watch_configmap_interval_in_sec = 60
runner_namespace = "csghub"
public_docker_reg_base = "opencsg-registry.cn-beijing.cr.aliyuncs.com"
[cluster]
cluster_id = ""
region = "region-0"
spaces_namespace = "spaces"
resource_quota_namespace = "spaces"
quota_name = ""
[logcollector]
port = 8096
loki_url = "http://localhost:3100"
watch_ns_interval = 1
max_concurrent_streams = 1000
batch_size = 1000
batch_delay = 3
drop_msg_timeout = 60
max_retries = 3
retry_interval = 1
health_interval = 5
line_separator= "\\n"
[git]
operation_timeout = 10
check_file_size_enabled = true
max_un_lfs_file_size = 20971520
skip_lfs_file_validation = false
[integration]
github_token = ""
github_api_base_url = "https://api.github.com"
[notification]
port = 8095
host = "http://localhost"
mailer_host = ""
mailer_port = 465
mailer_username = ""
mailer_password = ""
direct_mail_enabled = false
direct_mail_access_key_id = ""
direct_mail_access_key_secret = ""
[prometheus]
api_address = "http://prometheus.opencsg.com/api/v1/query"
basic_auth = "myauth"