Skip to content

Commit

Permalink
simplify marznode installation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
khodedawsh committed Jul 30, 2024
1 parent 36f3f39 commit 1a99ae6
Showing 1 changed file with 18 additions and 48 deletions.
66 changes: 18 additions & 48 deletions content/docs/getting-started/installations/marznode.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Marznode
weight: 2
---

### Prerequesits
### Prerequisites

- Docker
- Docker Compose
Expand All @@ -12,79 +12,49 @@ weight: 2
Make sure you have docker installed

```sh
$ curl -fsSL https://get.docker.com | sh
curl -fsSL https://get.docker.com | sh
```

{{< /callout >}}

{{% steps %}}

### Get Marznode

Clone the marznode repository and spin up the container.
### Setup your certificate

Create the necessary directory
```sh
$ git clone https://github.com/marzneshin/marznode
$ cd marznode
mkdir -p /var/lib/marznode/
```

### Configure certificate

Copy the marzneshin certificate from dashboard in settings page to `/var/lib/marznode/client.pem`.

### Setup Xray for marznode
And get your certificate from marzneshin settings, place it here:

Move to `/var/lib/marznode/data`

```sh
mkdir -p /var/lib/marznode/data
cd /var/lib/marznode/data
```
`/var/lib/marznode/client.pem`

Download the latest [Xray release](https://github.com/XTLS/Xray-core/releases/) for linux

```sh
wget https://github.com/XTLS/Xray-core/releases/download/v1.8.21/Xray-linux-64.zip
```
### Setup some xray config

Unzip and clean the Xray file
Provide some xray config for your node; you could modify it later in the dashboard.
We setup the sample config from marznode repository in this case:

```sh
unzip Xray-linux-64.zip && rm Xray-linux-64.zip
curl https://github.com/khodedawsh/marznode/raw/master/xray_config.json > /var/lib/marznode/xray_config.json
```

### Configure xray

Copy the xray config file:

```sh
cp /root/marznode/xray_config.json /var/lib/marznode/xray_config.json
```

Move the data to xray for marznode:

```sh
cp /var/lib/marznode/data/xray /var/lib/marznode/xray
```

### Set the environment variables
### Get Marznode

Based on the current steps, the `.env` file should follow as
To clone marznode

```sh
XRAY_EXECUTABLE_PATH="/var/lib/marznode/xray"
XRAY_ASSETS_PATH="/var/lib/marznoed/data"
XRAY_CONFIG_PATH="/var/lib/marznode/xray_config.json"
SSL_CLIENT_CERT_FILE="/var/lib/marznode/client.pem"
SSL_KEY_FILE="./server.key"
SSL_CERT_FILE="./server.cert"
git clone https://github.com/khodedawsh/marznode
cd marznode
```

### Spin up docker compose
### Spin up the container

Execute the following command inside the marznode folder:
Execute the following command to get your node up and running

```sh
```shell
docker compose up -f ./compose.yml -d
```

Expand Down

0 comments on commit 1a99ae6

Please sign in to comment.