GithubHelp home page GithubHelp logo

lixinyusiwen / am-nodejs-proxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ansoncloud8/am-nodejs-proxy

0.0 0.0 0.0 17 KB

基于 Node.js 的 vless 实现包。它在各种 Node.js 环境中都能运行,包括但不限于:Windows、Linux、MacOS、Android、iOS、树莓派等。同时,它也适用于各种 PaaS 平台,如:replit、heroku 等。

License: Apache License 2.0

Shell 70.95% JavaScript 29.05%

am-nodejs-proxy's Introduction

am-nodejs-proxy

基于 Node.js 的 vless 实现包。它在各种 Node.js 环境中都能运行,包括但不限于:Windows、Linux、MacOS、Android、iOS、树莓派等。同时,它也适用于各种 PaaS 平台,如:replit、heroku 等。

This README explains how to set up and use the start.sh script to manage the project components.

Initial Setup

  1. Connect to your host using SSH:
ssh <username>@<panel>.serv00.com

Use the information emailed to you by serv00.

  1. Enable management permissions:
devil binexec on

AFTER THIS STEP, EXIT FROM SSH AND LOG IN AGAIN.

  1. Clone the repository:
cd domains/<username>.serv00.net
git clone https://github.com/ansoncloud8/am-nodejs-proxy.git
cd am-nodejs-proxy

Usage

To use the script, run:

./start.sh <action> <sub-action>
Action Sub-Action Command Description
setup xray/node ./start.sh setup xray Setup services in a single command
check xray/node ./start.sh check xray Checks Cloudflared and other services
show xray/node/all ./start.sh show xray Displays VLESS connection links from node/.env

NODE.JS AND XRAY CANNOT BE ACTIVE SIMULTANEOUSLY. ONLY ONE OF THEM SHOULD BE RUNNING AT A TIME.

Checking Sessions

To check the status of a specific component, you can attach to its tmux session:

tmux attach -t <session>

Replace <session> with:

  • cf for Cloudflared
  • node for Node.js
  • xray for Xray

For example, to check the Cloudflared session:

tmux attach -t cf

To detach from a tmux session without closing it, press:

Ctrl + b, then d

This key combination allows you to exit the session while leaving it running in the background.

Notes

  • The script uses tmux to manage sessions for each component.
  • Cron jobs are set up for periodic maintenance of Node.js and Xray.
  • Cloudflared, Node.js, and Xray configurations are generated automatically.
  • The script includes functions for port management and cleanup.

am-nodejs-proxy's People

Contributors

ansoncloud8 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.