Skip to content

osirislab/recruit-CTFd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSIRIS Recruit CTFd

Hello current Infrastructure Manager, or wandering lab member!
This is the official setup guide for OSIRIS RECRUIT @ 128.238.62.253 hosted on ISIS-host.

Previously, there wasn't too much documentation surrounding CTFd and how it's SSL certificates worked, so this is how you do it.

Prerequisites

  1. Install docker. Good guide for ubuntu-server-22 here.

Install

  1. Clone the repo
git clone git@github.com:osirislab/recruit-CTFd.git
  1. Set up Certbot with certificates with its docker image. It will prompt your to set up a standalone server. Choose that option. Additionally, enter the domain that is used for recruit. Here it is recruit.osiris.bar (Thanks Ruarua!)
docker run -it --rm --name certbot \
        -v "/etc/letsencrypt:/etc/letsencrypt" \
        -v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
        certbot/certbot certonly
  1. Copy the certificates from the /etc/letsencrypt/live directory
cp /etc/letsencrypt/live/recruit.osiris.bar/privkey.pem /home/manager/recruit-ctfd/conf/nginx/privkey.pem
cp /etc/letsencrypt/live/recruit.osiris.bar/fullchain.pem /home/manager/recruit-ctfd/conf/nginx/fullchain.pem
  1. Return to /recruit-ctfd and run the docker-compose.yml file. -d for detached.
docker-compose up -d
  1. Verify it is working at your domain. Make sure to set the admin password and no one got to it before you did 💯.
  2. Set up a cronjob to renew the certificates every 3 months!

Reminders

Set up a cronjob to renew the certs. Please.
DNS is controlled by greater powers. Reach out to @Infrastrukture if you need help.

Cheers ❤️ @davidchiii (@scriiible)