10 Commits

Author SHA1 Message Date
f2456e116b 删除不再使用的配置文件和脚本,更新Dockerfile以支持前后端构建,重构配置加载逻辑,添加OAuth2.0支持,优化API处理和路由设置。 2025-06-14 17:40:31 +08:00
44afb8cae9 fix(config, docker): update log file path and BASE_URL for consistency
- Changed log_file path in config.json to point to /root/data/logs/server.log.
- Updated BASE_URL in docker-compose.yml to use https://example.net/random-api for improved clarity and consistency.
2024-11-30 23:38:43 +08:00
1fc1069ec1 refactor(docker, config): streamline directory structure and enhance configuration management
- Removed unnecessary volume mounts for public and logs in docker-compose.yml.
- Updated Dockerfile to create necessary directories under /root/data.
- Modified start.sh to copy files to the new public directory location.
- Enhanced config.go to create default configuration and directory structure if not present.
- Adjusted router.go to serve static files from the new public directory path.
2024-11-30 23:34:45 +08:00
e70ca4cf52 feat(docker, config, api): update docker-compose for logging, enhance app structure, and add system metrics display
- Updated docker-compose.yml to mount logs directory.
- Changed BASE_URL environment variable to point to the new API endpoint.
- Refactored main.go to implement a structured App type, improving initialization and graceful shutdown.
- Enhanced config management with JSON loading and environment variable support.
- Added monitoring capabilities in api_handler for logging request metrics.
- Introduced new metrics display in index.html with corresponding CSS styles for better visualization.
2024-11-30 23:23:58 +08:00
wood chen
cbeadf2e48
Update docker-compose.yml 2024-10-27 06:18:13 +08:00
749cd088b7 refactor: update environment variable and csv file handling 2024-10-27 02:40:53 +08:00
ba25817111 feat: add support for CSV_BASE_URL environment variable and update file reading logic 2024-10-27 02:02:15 +08:00
ff2163b207 feat: update random-api-go service and UI with stats display 2024-10-26 14:28:04 +08:00
4367782a36 feat: refactor Dockerfile and implement new CSV handling logic 2024-09-12 16:44:26 +08:00
7fd2ac2283 first commit 2024-09-12 15:48:31 +08:00