Spaces:
Paused
Paused
Commit
·
7db91c7
1
Parent(s):
c2740f5
部署
Browse files- Dockerfile +2 -2
- config.yaml +1 -1
Dockerfile
CHANGED
|
@@ -3,13 +3,13 @@ FROM eceasy/cli-proxy-api:latest
|
|
| 3 |
#复制配置文件到容器内
|
| 4 |
WORKDIR /CLIProxyAPI
|
| 5 |
COPY config.yaml /CLIProxyAPI/config.yaml
|
| 6 |
-
|
| 7 |
COPY logs /CLIProxyAPI/logs
|
| 8 |
COPY conv /CLIProxyAPI/conv
|
| 9 |
|
| 10 |
#修改权限
|
| 11 |
RUN chmod 777 /CLIProxyAPI/config.yaml
|
| 12 |
-
RUN chmod 777 /
|
| 13 |
RUN chmod 777 /CLIProxyAPI/logs
|
| 14 |
RUN chmod 777 /CLIProxyAPI/conv
|
| 15 |
|
|
|
|
| 3 |
#复制配置文件到容器内
|
| 4 |
WORKDIR /CLIProxyAPI
|
| 5 |
COPY config.yaml /CLIProxyAPI/config.yaml
|
| 6 |
+
COPY auth /CLIProxyAPI/auth
|
| 7 |
COPY logs /CLIProxyAPI/logs
|
| 8 |
COPY conv /CLIProxyAPI/conv
|
| 9 |
|
| 10 |
#修改权限
|
| 11 |
RUN chmod 777 /CLIProxyAPI/config.yaml
|
| 12 |
+
RUN chmod 777 /CLIProxyAPI/auth
|
| 13 |
RUN chmod 777 /CLIProxyAPI/logs
|
| 14 |
RUN chmod 777 /CLIProxyAPI/conv
|
| 15 |
|
config.yaml
CHANGED
|
@@ -16,7 +16,7 @@ remote-management:
|
|
| 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: [sk-123]
|
| 22 |
# Enable debug logging
|
|
|
|
| 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: "/CLIProxyAPI/auth"
|
| 20 |
# API keys for authentication
|
| 21 |
api-keys: [sk-123]
|
| 22 |
# Enable debug logging
|