Spaces:
Paused
Paused
Add config.yaml and copy to container
Browse files- Dockerfile +2 -0
- config.yaml +33 -0
Dockerfile
CHANGED
|
@@ -4,3 +4,5 @@ FROM eceasy/cli-proxy-api:latest
|
|
| 4 |
ENV PORT=7860
|
| 5 |
EXPOSE 7860
|
| 6 |
|
|
|
|
|
|
|
|
|
| 4 |
ENV PORT=7860
|
| 5 |
EXPOSE 7860
|
| 6 |
|
| 7 |
+
COPY config.yaml /CLIProxyAPI/config.yaml
|
| 8 |
+
|
config.yaml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
port: 7860
|
| 2 |
+
|
| 3 |
+
# Management API settings
|
| 4 |
+
remote-management:
|
| 5 |
+
allow-remote: false
|
| 6 |
+
secret-key: ""
|
| 7 |
+
disable-control-panel: false
|
| 8 |
+
|
| 9 |
+
# Authentication directory
|
| 10 |
+
auth-dir: "/tmp/.cli-proxy-api"
|
| 11 |
+
|
| 12 |
+
# API keys for authentication (Access Control)
|
| 13 |
+
api-keys:
|
| 14 |
+
- "030916"
|
| 15 |
+
|
| 16 |
+
# Enable debug logging
|
| 17 |
+
debug: true
|
| 18 |
+
|
| 19 |
+
# When true, write application logs to rotating files instead of stdout
|
| 20 |
+
logging-to-file: false
|
| 21 |
+
|
| 22 |
+
# When false, disable in-memory usage statistics aggregation
|
| 23 |
+
usage-statistics-enabled: false
|
| 24 |
+
|
| 25 |
+
# Request retry
|
| 26 |
+
request-retry: 3
|
| 27 |
+
|
| 28 |
+
# Gemini API keys
|
| 29 |
+
gemini-api-key:
|
| 30 |
+
# User needs to provide the actual API Key here instead of OAuth credentials if the new image doesn't support OAuth params
|
| 31 |
+
# or check if there is a way to pass the OAuth credentials.
|
| 32 |
+
# For now leaving empty/placeholder to allow server to start.
|
| 33 |
+
- api-key: ""
|