Skip to content

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

License

Notifications You must be signed in to change notification settings

adamdebreceni/c2-server

Repository files navigation

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

There is an example configuration how to run the c2-server 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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages