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.
- Install
docker
. Good guide for ubuntu-server-22 here.
- Clone the repo
git clone [email protected]:osirislab/recruit-CTFd.git
- 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
- 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
- Return to
/recruit-ctfd
and run thedocker-compose.yml
file.-d
for detached.
docker-compose up -d
- Verify it is working at your domain. Make sure to set the admin password and no one got to it before you did 💯.
- Set up a cronjob to renew the certificates every 3 months!
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)