MERN-based CTF platform
yarn install
Create a .env
file in the local directory with these values:
MONGODB
: Required. This is a MongoDB connection string used to connect to the backend database. If authentication or SSL is enabled, you must specify that in the connection string via the respective fields.COOKIESECRET
: Required. This is the secret used for express-session. This is used to sign the session ID cookie. It is recommended that this value is randomly generated.PORT
: Optional. This is the port used for this application. It defaults to 3000
if not specified.DEBUG
: Optional. Setting it to "rgbctf-backend" will cause debug messages to be logged.REDISPORT
: Optional. The port for the Redis instance. Defaults to 6379
.REDISHOST
: Optional. The host for the Redis instance. Defaults to 127.0.0.1
.ALLOWCORS
: Optional. If present with any non-empty string, CORS will be enabled with an origin of http://localhost:3000
. This is mainly used for testing the frontend with the API.Then, to start the application, run:
yarn start
π€ RGBsec
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Give a βοΈ if this project helped you!