https://github.com/mohrezfadaei/marzban-node-go
This repository contains the Go implementation of Marzban-node.
https://github.com/mohrezfadaei/marzban-node-go
go golang marzban marzban-node v2ray xray xray-core xtls
Last synced: 6 months ago
JSON representation
This repository contains the Go implementation of Marzban-node.
- Host: GitHub
- URL: https://github.com/mohrezfadaei/marzban-node-go
- Owner: mohrezfadaei
- License: apache-2.0
- Created: 2024-08-13T02:13:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-13T05:09:41.000Z (about 1 year ago)
- Last Synced: 2025-03-30T16:01:47.112Z (7 months ago)
- Topics: go, golang, marzban, marzban-node, v2ray, xray, xray-core, xtls
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Marzban Node Go
Marzban Node Go is a Go-based application that provides node services using gRPC and REST protocols. This project includes a multi-platform Docker setup and a `Makefile` to simplify the build and deployment process.
## Prerequisites
- [Docker](https://www.docker.com/get-started)
## Getting Started
### Docker
#### Building Docker Image
To build the Docker image for the local architecture:
```sh
docker build -t marzban-node-go .
```### Environment Variables
The application configuration is loaded from environment variables. Below is an example `.env` file:
```env
SERVICE_PORT=62050
XRAY_API_PORT=62051
XRAY_EXECUTABLE_PATH=/usr/local/bin/xray
XRAY_ASSETS_PATH=/usr/local/share/xray
SSL_CERT_FILE=/var/lib/marzban-node/ssl_cert.pem
SSL_KEY_FILE=/var/lib/marzban-node/ssl_key.pem
SSL_CLIENT_CERT_FILE=/path/to/ssl_client_cert.pem
SERVICE_PROTOCOL=rpyc
DEBUG=false
```## License
This project is licensed under the Apache License. See the [LICENSE](LICENSE) file for details.