Skip to content

Instantly share code, notes, and snippets.

View mmcinnestaylor's full-sized avatar

Marlan McInnes-Taylor mmcinnestaylor

View GitHub Profile
@mmcinnestaylor
mmcinnestaylor / README.md
Last active January 31, 2024 22:01
Deploy al-folio themed Jekyll site to Cloudflare Pages

al-folio + Cloudflare Pages

The Jekyll al-folio theme requires a working Jupyter installation to successfully build the site. The default Cloudflare Pages Jekyll builder does not include a Jupyter installation. Instead of building the site on the Cloudflare platform, one can build and deploy the site using GitHub Actions.

In order to utilize both Production and Preview deployments in Cloudflare Pages, update the .github/workflows/broken-links.yml workflow to include the desired development branch(es), and utilize the github.event.workflow_run.head_branch attribute in the checkout and delpoy steps within deploy.yml.

References

@mmcinnestaylor
mmcinnestaylor / jail.local
Last active April 22, 2023 16:07
fail2ban nginx jails
[nginx-badbots]
port = http,https
logpath = %(nginx_access_log)s
maxretry = 1
findtime = 604800
bantime = 604800
[nginx-4xx]