Spaces:
Paused
Paused
Commit ·
7cc08a5
1
Parent(s): 73a07a2
参考clawcloud配置
Browse files- .gitignore +1 -0
- Dockerfile +8 -8
- {auth → auths}/.gitkeep +0 -0
- config.yaml +18 -17
.gitignore
CHANGED
|
@@ -1 +1,2 @@
|
|
| 1 |
.spec-workflow/
|
|
|
|
|
|
| 1 |
.spec-workflow/
|
| 2 |
+
README-HuggingFace.md
|
Dockerfile
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
FROM eceasy/cli-proxy-api:latest
|
| 3 |
#复制配置文件到容器内
|
| 4 |
WORKDIR /CLIProxyAPI
|
| 5 |
-
COPY config.yaml /
|
| 6 |
-
COPY auth /
|
| 7 |
COPY logs /CLIProxyAPI/logs
|
| 8 |
COPY conv /CLIProxyAPI/conv
|
| 9 |
-
COPY static /
|
| 10 |
#修改权限
|
| 11 |
-
RUN chmod 777 /
|
| 12 |
-
RUN chmod 777 /
|
| 13 |
RUN chmod 777 /CLIProxyAPI/logs
|
| 14 |
RUN chmod 777 /CLIProxyAPI/conv
|
| 15 |
# RUN chmod 777 /CLIProxyAPI/static
|
|
@@ -23,10 +23,10 @@ EXPOSE 8317
|
|
| 23 |
|
| 24 |
# 设置环境变量。
|
| 25 |
#ENV PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
| 26 |
-
ENV REMOTE_MANAGEMENT_ALLOW_REMOTE=""
|
| 27 |
-
ENV REMOTE_MANAGEMENT_SECRET_KEY=""
|
| 28 |
# ENV TZ="Asia/Shanghai"
|
| 29 |
ENV PORT=8317
|
| 30 |
ENV HOST=0.0.0.0
|
| 31 |
|
| 32 |
-
CMD ["./CLIProxyAPI"]
|
|
|
|
| 2 |
FROM eceasy/cli-proxy-api:latest
|
| 3 |
#复制配置文件到容器内
|
| 4 |
WORKDIR /CLIProxyAPI
|
| 5 |
+
COPY config.yaml /data/config.yaml
|
| 6 |
+
COPY auth /data/auths
|
| 7 |
COPY logs /CLIProxyAPI/logs
|
| 8 |
COPY conv /CLIProxyAPI/conv
|
| 9 |
+
COPY static /data/static
|
| 10 |
#修改权限
|
| 11 |
+
RUN chmod 777 /data/config.yaml
|
| 12 |
+
RUN chmod 777 /data/auths
|
| 13 |
RUN chmod 777 /CLIProxyAPI/logs
|
| 14 |
RUN chmod 777 /CLIProxyAPI/conv
|
| 15 |
# RUN chmod 777 /CLIProxyAPI/static
|
|
|
|
| 23 |
|
| 24 |
# 设置环境变量。
|
| 25 |
#ENV PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
| 26 |
+
# ENV REMOTE_MANAGEMENT_ALLOW_REMOTE=""
|
| 27 |
+
# ENV REMOTE_MANAGEMENT_SECRET_KEY=""
|
| 28 |
# ENV TZ="Asia/Shanghai"
|
| 29 |
ENV PORT=8317
|
| 30 |
ENV HOST=0.0.0.0
|
| 31 |
|
| 32 |
+
CMD ["./CLIProxyAPI", "--config", "/data/config.yaml"]
|
{auth → auths}/.gitkeep
RENAMED
|
File without changes
|
config.yaml
CHANGED
|
@@ -12,37 +12,38 @@ remote-management:
|
|
| 12 |
# All management requests (even from localhost) require this key.
|
| 13 |
|
| 14 |
# Leave empty to disable the Management API entirely (404 for all /v0/management routes).
|
| 15 |
-
secret-key: "
|
| 16 |
# Disable the bundled management control panel asset download and HTTP route when true.
|
| 17 |
disable-control-panel: false
|
| 18 |
# Authentication directory (supports ~ for home directory)
|
| 19 |
-
auth-dir: "/
|
| 20 |
# API keys for authentication
|
| 21 |
-
api-keys:
|
|
|
|
| 22 |
# Enable debug logging
|
| 23 |
-
debug:
|
| 24 |
# When true, write application logs to rotating files instead of stdout
|
| 25 |
logging-to-file: false
|
| 26 |
# When false, disable in-memory usage statistics aggregation
|
| 27 |
-
usage-statistics-enabled:
|
| 28 |
# Proxy URL. Supports socks5/http/https protocols. Example: socks5://user:pass@192.168.1.1:1080/
|
| 29 |
-
proxy-url: ""
|
| 30 |
# Number of times to retry a request. Retries will occur if the HTTP response code is 403, 408, 500, 502, 503, or 504.
|
| 31 |
-
request-retry:
|
| 32 |
# Quota exceeded behavior
|
| 33 |
quota-exceeded:
|
| 34 |
switch-project: true # Whether to automatically switch to another project when a quota is exceeded
|
| 35 |
switch-preview-model: true # Whether to automatically switch to a preview model when a quota is exceeded
|
| 36 |
-
request-log: true
|
| 37 |
-
generative-language-api-key: []
|
| 38 |
-
claude-api-key: []
|
| 39 |
-
codex-api-key: []
|
| 40 |
-
openai-compatibility: []
|
| 41 |
-
gemini-web:
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
|
| 47 |
# API keys for official Generative Language API
|
| 48 |
|
|
|
|
| 12 |
# All management requests (even from localhost) require this key.
|
| 13 |
|
| 14 |
# Leave empty to disable the Management API entirely (404 for all /v0/management routes).
|
| 15 |
+
secret-key: "ABCD-1234"
|
| 16 |
# Disable the bundled management control panel asset download and HTTP route when true.
|
| 17 |
disable-control-panel: false
|
| 18 |
# Authentication directory (supports ~ for home directory)
|
| 19 |
+
auth-dir: "/data/auths"
|
| 20 |
# API keys for authentication
|
| 21 |
+
api-keys:
|
| 22 |
+
- "EFGH-5678"
|
| 23 |
# Enable debug logging
|
| 24 |
+
debug: false
|
| 25 |
# When true, write application logs to rotating files instead of stdout
|
| 26 |
logging-to-file: false
|
| 27 |
# When false, disable in-memory usage statistics aggregation
|
| 28 |
+
usage-statistics-enabled: false
|
| 29 |
# Proxy URL. Supports socks5/http/https protocols. Example: socks5://user:pass@192.168.1.1:1080/
|
| 30 |
+
# proxy-url: ""
|
| 31 |
# Number of times to retry a request. Retries will occur if the HTTP response code is 403, 408, 500, 502, 503, or 504.
|
| 32 |
+
request-retry: 3
|
| 33 |
# Quota exceeded behavior
|
| 34 |
quota-exceeded:
|
| 35 |
switch-project: true # Whether to automatically switch to another project when a quota is exceeded
|
| 36 |
switch-preview-model: true # Whether to automatically switch to a preview model when a quota is exceeded
|
| 37 |
+
# request-log: true
|
| 38 |
+
# generative-language-api-key: []
|
| 39 |
+
# claude-api-key: []
|
| 40 |
+
# codex-api-key: []
|
| 41 |
+
# openai-compatibility: []
|
| 42 |
+
# gemini-web:
|
| 43 |
+
# context: true
|
| 44 |
+
# gem-mode: ""
|
| 45 |
+
# code-mode: false
|
| 46 |
+
# max-chars-per-request: 0
|
| 47 |
|
| 48 |
# API keys for official Generative Language API
|
| 49 |
|