-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First user becomes admin, add more instructions
- Loading branch information
Showing
6 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# use this for production / hosting your own app | ||
|
||
DB_ROOT_PWD="" | ||
ACCESS_TOKEN_SECRET="" | ||
REFRESH_TOKEN_SECRET="" | ||
DB_ROOT_PWD="" # The root password for the database | ||
ACCESS_TOKEN_SECRET="" # The secret for the access token used for logins | ||
REFRESH_TOKEN_SECRET="" # The secret for the refresh token used for logins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
CTF_DB_URL="" | ||
CTF_DB_URL="mysql://root:${DB_ROOT_PWD}@localhost:3306/capture-the-feather" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# How to Import Challenges | ||
|
||
This project is used to import challenges from .yml files into the database. The .yml files should be in the same format as the ones in the `supported` directory. | ||
|
||
A good example of where to find such challenges is [here](https://github.com/csivitu/ctf-challenges/tree/master). Dockerfile challenges are not supported at this time. | ||
|
||
1. Copy the `.env.example` file in the root directory to a new file called `.env` | ||
1. Fill in the `.env` file with the appropriate values. | ||
1. Run `npm install` in the root directory. | ||
1. Copy the challenges you want to import into a new folder in the `importer` project. The import script will look for all files named 'challenge.yml' and attempt to import them. | ||
1. Run `npm run import` in the root directory. Follow the prompts to import the challenges. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Use this for development purposes only | ||
|
||
CTF_DB_URL="" | ||
CTF_DB_URL="mysql://root:${DB_ROOT_PWD}@localhost:3306/capture-the-feather" | ||
ACCESS_TOKEN_SECRET="" | ||
REFRESH_TOKEN_SECRET="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters