Sign inSign up

adamdebreceni/c2

By adamdebreceni

•Updated 10 months ago

Image
0

1.2K

adamdebreceni/c2 repository overview

https://github.com/adamdebreceni/c2-server⁠

⁠Introduction

This project provides a user-friendly solution to design and deploy flows for both MiNiFi C++⁠ and MiNiFi Java⁠ through the c2-protocol.  

 

Screenshot 2025-01-07 at 16 20 11  

 

Screenshot 2025-01-07 at 16 22 12  

 

Screenshot 2025-01-07 at 16 23 29  

 

⁠Building and running

npm install
npm run build-server
npm run server

# In a separate terminal
npm run website

Then you can visit http://localhost:13405 to manage your agents, design and update flows.

⁠For agent configuration

⁠MiNiFi C++

append this to conf/minifi.properties

nifi.c2.enable=true
nifi.c2.flow.base.url=http://localhost:13405/api/flows
nifi.c2.rest.url=http://localhost:13405/api/heartbeat
nifi.c2.rest.url.ack=http://localhost:13405/api/acknowledge
nifi.c2.agent.class=<some class>
nifi.c2.agent.identifier=<some id>
⁠MiNiFi Java

append this to conf/bootstrap.conf

c2.enable=true
c2.rest.path.base=http://localhost::13405/api
c2.rest.path.heartbeat=http://localhost::13405/api/heartbeat
c2.rest.path.acknowledge=http://localhost::13405/api/acknowledge
c2.agent.class=<some class>
c2.agent.identifier=<some id>

⁠Using docker

For prebuilt docker image see https://hub.docker.com/r/adamdebreceni/c2⁠

There is an example⁠ configuration how to run the c2-server (locally built) in docker with a single java and a single cpp agent.

cd examples/minifi
docker compose up

After that you can access it from http://localhost:13406/agents⁠

Tag summary

Content type

Image

Digest

sha256:ff3e39b05…

Size

276.5 MB

Last updated

10 months ago

docker pull adamdebreceni/c2