Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihbaltaci committed Apr 24, 2023
1 parent 66abcf2 commit b97b688
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions selfhosted/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ The dashboard is available at [http://localhost:8014](http://localhost:8014)

The Ddosify Self Hosted includes a default engine out of the box. To integrate additional engines, simply run a Docker container for each new engine. These engine containers will automatically register with the service and become available for use. Before adding new engines, ensure that you have enabled the distributed mode by clicking the `Unlock the Distributed Mode` button in the dashboard.

In case you have modified the default values like InfluxDB password in the `.env` file, utilize the `--env` flag in the docker run command to establish the necessary environment variables.

Make sure the new engine server can access the service server. Use the `DDOSIFY_SERVICE_ADDRESS` environment variable to specify the service server address where the [install.sh](install.sh) script was executed.

The engine server must connect to the following ports on the `DDOSIFY_SERVICE_ADDRESS`:
Expand All @@ -69,9 +71,6 @@ The engine server must connect to the following ports on the `DDOSIFY_SERVICE_AD
- `9086`: InfluxDB server. The engine server accesses this port to transmit metrics to the backend.
- `9900`: Object storage server. The engine server uses this port to exchange files with the service server.

In case you have modified the default values like InfluxDB password in the `.env` file, utilize the `--env` flag in the docker run command to establish the necessary environment variables.


- **Example 1**: Adding the engine to the same server where the [install.sh](install.sh) script was run.

```bash
Expand All @@ -88,14 +87,13 @@ Set `DDOSIFY_SERVICE_ADDRESS` to the IP address of the service server. Set `IP_A

```bash
# Make sure to set the following environment variables
DDOSIFY_SERVICE_ADDRESS=SERVICE_IP
IP_ADDRESS=ENGINE_IP
DDOSIFY_SERVICE_ADDRESS=16.62.190.13
IP_ADDRESS=local
NAME=ddosify_hammer_1

docker run --name $NAME -dit \
--env DDOSIFY_SERVICE_ADDRESS=$DDOSIFY_SERVICE_ADDRESS \
--env IP_ADDRESS=$IP_ADDRESS \
--network selfhosted_ddosify \
--restart always \
ddosify/selfhosted_hammer
```
Expand Down

0 comments on commit b97b688

Please sign in to comment.