6abae17fea
Implement dynamic database path configuration in database.js, enhancing compatibility with Docker and local development environments. Update db.js to log the database connection path. Remove response data truncation in validator.js for improved readability.
master
theluyuan2025-10-31 10:32:44 +08:00
da140d5415
Remove response data truncation logic in ProxyManager for improved readability of displayed content.
theluyuan2025-10-31 10:28:50 +08:00
4cefbbbcd6
Refactor ProxyScraper to limit proxy attempts to 3 and improve error handling. Added a flag to switch to direct connection if proxy fails. Enhanced logging for proxy testing outcomes.
theluyuan2025-10-31 10:03:40 +08:00
a4127509af
Enhance ProxyManager and ProxyValidator to display detailed response information, including status codes, response data, and headers. Implement response data truncation for better readability. Update validation logic to capture and return response details in case of errors.
theluyuan2025-10-31 09:56:31 +08:00
6c3b3928f9
Add "实时日志" link to navigation in history, index, monitoring, and proxies pages
theluyuan2025-10-31 09:44:44 +08:00
54bc260453
Restore directory creation in Dockerfile for data and logs, removing previous comment-out for improved setup consistency.
theluyuan2025-10-31 09:40:50 +08:00
9bdc1bd9b3
Comment out directory creation and user switch in Dockerfile for potential troubleshooting purposes.
theluyuan2025-10-31 09:39:53 +08:00
8cb074660a
Update DOCKER_README.md to address log file permission issues, providing troubleshooting steps for Linux/Mac and Windows users. Clarify the importance of ensuring the logs directory has the correct permissions for the container's node user.
theluyuan2025-10-31 09:36:08 +08:00
c9ccb3435d
Update Dockerfile to create both data and logs directories; enhance logger to handle directory and file creation errors gracefully. Log warnings for permission issues without blocking application startup.
theluyuan2025-10-31 09:33:05 +08:00
f96a69e846
Add logging functionality and new log-related endpoints
theluyuan2025-10-31 09:23:05 +08:00
76683fb519
Enhance ProxyValidator to support three validation attempts with improved logging. Update retryCount default to 2 and clarify retry logic in comments.
theluyuan2025-10-31 08:50:45 +08:00
a31fe3f892
Refactor proxy validation logic to use a unified ProxyValidator class, enhancing code maintainability and adding support for retry mechanisms and logging options.
theluyuan2025-10-31 08:45:16 +08:00
136070e02f
Comment out npm registry configuration in Dockerfile
theluyuan2025-10-30 23:43:42 +08:00
76363d0da7
Update Dockerfile to install dependencies using pnpm instead of npm
theluyuan2025-10-30 23:41:52 +08:00
0d98b501a0
Refactor Dockerfile to use 'npm install' instead of 'npm ci' for dependency installation
theluyuan2025-10-30 23:30:15 +08:00