Files
bidding_watcher/.env.example
dmy 300e930c64 feat(auth): implement API key authentication and enhance request handling
- Add AuthGuard to validate API key for public access.
- Create AuthModule to provide the AuthGuard globally.
- Update API request interceptor to automatically include API key for non-localhost requests.
- Modify .env and .env.example to include API_KEY configuration.
- Enhance API request handling with improved error logging and client IP detection.
2026-01-16 11:26:02 +08:00

29 lines
670 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
DATABASE_TYPE=mariadb
DATABASE_HOST=localhost
DATABASE_PORT=3306
DATABASE_USERNAME=root
DATABASE_PASSWORD=root
DATABASE_NAME=bidding
DATABASE_SYNCHRONIZE=true
# Slave 数据库配置(用于数据同步)
SLAVE_DATABASE_TYPE=mariadb
SLAVE_DATABASE_HOST=localhost
SLAVE_DATABASE_PORT=3306
SLAVE_DATABASE_USERNAME=root
SLAVE_DATABASE_PASSWORD=root
SLAVE_DATABASE_NAME=bidding_slave
# 代理配置(可选)
PROXY_HOST=127.0.0.1
PROXY_PORT=6000
# PROXY_USERNAME=
# PROXY_PASSWORD=
# 日志级别可选error, warn, info, debug, verbose
LOG_LEVEL=info
# OpenAI API Key (用于 AI 推荐)
ARK_API_KEY=your_openai_api_key_here
API_KEY=your_secure_api_key_here