2024-06-11 11:16:37 +08:00
|
|
|
#
|
|
|
|
# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2025-06-17 18:01:30 +08:00
|
|
|
NAME_LENGTH_LIMIT = 2**10
|
2024-10-10 09:09:29 +08:00
|
|
|
|
2025-06-17 18:01:30 +08:00
|
|
|
IMG_BASE64_PREFIX = "data:image/png;base64,"
|
Print configs when startup RAGFlow server (#3414)
### What problem does this PR solve?
Print configs at the RAGFlow startup phase.
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
```
2024-11-14 21:27:53,090 INFO 962231 Current configs, from /home/weilongma/Documents/development/ragflow/conf/service_conf.yaml:
2024-11-14 21:27:53,090 INFO 962231 ragflow: {'host': '0.0.0.0', 'http_port': 9380}
2024-11-14 21:27:53,090 INFO 962231 mysql: {'name': 'rag_flow', 'user': 'root', 'password': 'infini_rag_flow', 'host': 'mysql', 'port': 5455, 'max_connections': 100, 'stale_timeout': 30}
2024-11-14 21:27:53,090 INFO 962231 minio: {'user': 'rag_flow', 'password': 'infini_rag_flow', 'host': 'minio:9000'}
2024-11-14 21:27:53,090 INFO 962231 es: {'hosts': 'http://es01:1200', 'username': 'elastic', 'password': 'infini_rag_flow'}
2024-11-14 21:27:53,090 INFO 962231 redis: {'db': 1, 'password': 'infini_rag_flow', 'host': 'redis:6379'}
```
Signed-off-by: jinhai <haijin.chn@gmail.com>
2024-11-15 09:29:40 +08:00
|
|
|
|
2024-11-18 12:05:38 +08:00
|
|
|
SERVICE_CONF = "service_conf.yaml"
|
|
|
|
|
|
|
|
API_VERSION = "v1"
|
|
|
|
RAG_FLOW_SERVICE_NAME = "ragflow"
|
|
|
|
REQUEST_WAIT_SEC = 2
|
|
|
|
REQUEST_MAX_WAIT_SEC = 300
|
2024-11-28 15:46:35 +08:00
|
|
|
|
|
|
|
DATASET_NAME_LIMIT = 128
|
2025-06-17 18:01:30 +08:00
|
|
|
FILE_NAME_LEN_LIMIT = 255
|