services:
cli-proxy-api:
image: eceasy/cli-proxy-api:latest
container_name: cli-proxy-api
volumes:
- ./config.yaml:/CLIProxyAPI/config.yaml
- ./cli-proxy-api/auths:/root/.cli-proxy-api
environment:
- TZ=${TZ:?TZ is required}
restart: unless-stopped
logging:
driver: 'json-file'
options:
max-size: '100k'
max-file: '1'
networks:
- caddy_net
networks:
caddy_net:
external: true
config.yaml 配置文件
# Server port
port: 8317
# TLS settings for HTTPS. When enabled, the server listens with the provided certificate and key.
tls:
enable: false
# Management API settings
remote-management:
# Whether to allow remote (non-localhost) management access.
# When false, only localhost can access management endpoints (a key is still required).
allow-remote: true
# Management key. If a plaintext value is provided here, it will be hashed on startup.
# All management requests (even from localhost) require this key.
# Leave empty to disable the Management API entirely (404 for all /v0/management routes).
secret-key: "password"
# Disable the bundled management control panel asset download and HTTP route when true.
disable-control-panel: false
# GitHub repository for the management control panel. Accepts a repository URL or releases API URL.
panel-github-repository: "https://github.com/router-for-me/Cli-Proxy-API-Management-Center"
# Authentication directory (supports ~ for home directory)
auth-dir: "~/.cli-proxy-api"
api-keys:
- sk-key
logging-to-file: false
usage-statistics-enabled: true