22 lines
535 B
Python
22 lines
535 B
Python
import os
|
|
|
|
# ---------------- 客户端配置 ----------------
|
|
# 服务器 API 地址
|
|
SERVER_API = "http://服务器IP:5000/api/images"
|
|
CLIENT_UPDATE_API = "http://服务器IP:5000/api/client/update"
|
|
|
|
# 本地下载镜像存放目录
|
|
DOWNLOAD_DIR = "/tmp/docker_images"
|
|
|
|
# 本地客户端 CSV 文件
|
|
CLIENT_FILE = "./client_images.csv"
|
|
|
|
# 本地客户端 ID 文件
|
|
CLIENT_ID_FILE = "./client_id.txt"
|
|
|
|
# CSV 字段
|
|
CLIENT_FIELDS = ["image_name","image_tag","last_updated"]
|
|
|
|
# ---------------- 其他配置 ----------------
|
|
DEBUG = True
|