diff --git a/.gitignore b/.gitignore index 8083c681..d64676dd 100644 --- a/.gitignore +++ b/.gitignore @@ -92,6 +92,13 @@ backend/internal/web/dist/* # 后端运行时缓存数据 backend/data/ +# =================== +# 本地配置文件(包含敏感信息) +# =================== +backend/config.yaml +deploy/config.yaml +backend/.installed + # =================== # 其他 # =================== diff --git a/backend/config.yaml b/backend/config.yaml deleted file mode 100644 index ff2a8920..00000000 --- a/backend/config.yaml +++ /dev/null @@ -1,38 +0,0 @@ -server: - host: "0.0.0.0" - port: 8080 - mode: "debug" # debug/release - -database: - host: "127.0.0.1" - port: 5432 - user: "postgres" - password: "XZeRr7nkjHWhm8fw" - dbname: "sub2api" - sslmode: "disable" - -redis: - host: "127.0.0.1" - port: 6379 - password: "" - db: 0 - -jwt: - secret: "your-secret-key-change-in-production" - expire_hour: 24 - -default: - admin_email: "admin@sub2api.com" - admin_password: "admin123" - user_concurrency: 5 - user_balance: 0 - api_key_prefix: "sk-" - rate_multiplier: 1.0 - -# Timezone configuration (similar to PHP's date_default_timezone_set) -# This affects ALL time operations: -# - Database timestamps -# - Usage statistics "today" boundary -# - Subscription expiry times -# Common values: Asia/Shanghai, America/New_York, Europe/London, UTC -timezone: "Asia/Shanghai"