osirislab / recruit-CTFd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

License:Apache License 2.0


Languages

Language:Python 47.3%Language:JavaScript 26.2%Language:HTML 20.5%Language:Vue 3.1%Language:SCSS 2.6%Language:Shell 0.1%Language:Dockerfile 0.1%Language:CSS 0.1%Language:Makefile 0.0%Language:Nunjucks 0.0%Language:Mako 0.0%