Skip to content

Conversation

@kastov
Copy link
Collaborator

@kastov kastov commented Apr 4, 2025

No description provided.

kastov and others added 24 commits March 20, 2025 17:11
- Added logging of request headers in JwtDefaultGuard to assist with debugging SSL_CERT and JWT issues.
- Marked the logging line with a TODO for future removal.
- Updated the logging of request headers to use JSON.stringify for better readability.
- This change aids in debugging SSL_CERT and JWT issues while maintaining the existing TODO for future removal.
chore: add restart flag "always"
- Updated package versions in package.json and package-lock.json, including major updates for eslint, prettier, and various NestJS packages.
- Changed TypeScript module settings in tsconfig.json to use NodeNext.
- Enhanced logging in main.ts and adjusted JWT configuration to use JWT_PUBLIC_KEY.
- Updated config schema to handle JWT_PUBLIC_KEY and improved error handling for SSL_CERT.
- Refactored imports and code structure for better clarity and maintainability.
- Updated the build-dev.yml to support both linux/amd64 and linux/arm64 platforms for Docker builds.
- Updated getStartMessage to include XRay version, path, and system info.
- Refactored XrayController to ensure proper guard usage.
- Added getXrayInfo method in XrayService to retrieve XRay details.
…esponseModel

- Updated the response model to only include users with non-zero uplink or downlink values
…pendencies

- Updated Xray installation script version to v25.3.6 in both Dockerfile and Dockerfile.dev.
- Upgraded Node.js version to v22.14.0 in Dockerfile.dev.
- Updated @nestjs/config to version 4.0.2 and @remnawave/xtls-sdk to version 0.3.0 in package.json and package-lock.json.
- Added @remnawave/supervisord-nestjs package to package.json and package-lock.json.
- Configured SupervisordNestjsModule in app.module.ts for process management.
- Updated supervisord.conf to include inet_http_server settings for remote access.
- Refactored XrayService to utilize supervisord-nestjs for process control, replacing direct supervisorctl commands.
- Enhanced error handling and logging for process management operations.
- Introduced p-retry package for improved retry handling in XrayService.
- Enhanced logging format in main.ts to include custom log filter and timestamp.
- Updated package.json and package-lock.json to reflect new dependencies and versions.
- Refactored error handling in XrayService to provide clearer feedback on process status.
- Modified XRAY_DEFAULT_API_MODEL to include a new listen address and updated the tag.
- Commented out unused inbounds configuration in generate-api-config.ts.
- Introduced xtlsConfigInbounds in XrayService to extract inbound tags from the generated API config.
- Added XrayModule to HandlerModule imports for dependency injection.
- Enhanced HandlerService to utilize XrayService for retrieving inbound tags.
- Updated addUser method to remove users from tags using XrayService.
- Updated package version in package.json to 0.5.0.
- Removed 'tags' property from IRemoveUserRequest interface and corresponding command handler.
- Adjusted HandlerService to utilize inbound tags from XrayService instead of directly from the request.
- Changed host from 'http://localhost:61002' to 'http://127.0.0.1:61002' for improved compatibility in local environments.
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR introduces version bumps, platform enhancements, and configuration updates for the release 1.5.0 of remnawave/node.

  • Updated Dockerfiles (both production and dev) with Xray upgrade to v25.3.6 and a TCP-based Supervisor in supervisord.conf; verify compatibility.
  • Enhanced the build workflow in .github/workflows/build-dev.yml to support linux/arm64 alongside amd64.
  • Switched JWT configuration from SSL_CERT to JWT_PUBLIC_KEY in both src/common/config/jwt/jwt.config.ts and token validation.
  • Added a new ESLint configuration (eslint.config.mjs) while renaming legacy .old.eslintrc.js, noting potential tsconfigRootDir discrepancies.
  • Removed the 'tags' field in remove-user commands and adjusted handler logic accordingly; check for multi-user edge cases.

35 file(s) reviewed, 8 comment(s)
Edit PR Review Bot Settings | Greptile

…controllers

- Simplified constructor definitions by removing redundant assignments in InternalController, StatsController, and XrayController
@kastov kastov merged commit 1a29c9c into main Apr 6, 2025
4 checks passed
@kastov kastov deleted the dev branch April 6, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants