A

axil.gitlab.io

Name Last Update
content Loading commit data...
pelican-plugins Loading commit data...
themes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
README.md Loading commit data...
fabfile.py Loading commit data...
requirements.txt Loading commit data...
settings_dev.py Loading commit data...
settings_prod.py Loading commit data...

Built with pelican, using the uberspot theme.

Clone

git clone --recursive https://gitlab.com/axil/axil.gitlab.io.git

Install

Install pelican and plugin dependencies:

pip install -r requirements.txt

Generate

pelican -s settings_prod.py

The generated HTML files will be in the public/ directory.

Deploy

Just push any changes and GitLab CI will start building the project.

Development

Install fabric:

pip install fabric

Hack with:

fab dev && fab serve

Open http://localhost:8000.

Note: gitpython needs python2. If it doesn't work, remove the plugin from settings_dev.py and rerun the above command.

Plugins used:

  • post_stats
  • tipue_search
  • neighbors
  • pelicanfly

Let's Encrypt

First time cert

  1. Create certs with:

    pacman -S certbot
    certbot certonly --manual -d axilleas.me -d www.axilleas.me
  2. Open new pane, cd into {blog source}/content

  3. Use the printf command, twice...

  4. git add .well-known/

  5. git commit -m "Acme challenge"

  6. git push origin source

  7. Navigate to https://gitlab.com/axil/axil.gitlab.io/pipelines

  8. Check that the last one passed

  9. Go to waiting certbot pane, hit Enter

  10. Navigate to https://gitlab.com/axil/axil.gitlab.io/pages

  11. Remove axilleas.me and www.axilleas.me domains

  12. Add new domains axilleas.me and www.axilleas.me with cert contents:

    # Certificate (PEM)
    sudo cat /etc/letsencrypt/live/axilleas.me/fullchain.pem|xclip
    
    # Key (PEM)
    sudo cat /etc/letsencrypt/live/axilleas.me/privkey.pem|xclip

Renewing a cert

  1. Renew certs with:

    certbot certonly --manual -d axilleas.me -d www.axilleas.me
  2. Navigate to https://gitlab.com/axil/axil.gitlab.io/pages

  3. Remove axilleas.me and www.axilleas.me domains

  4. Add new domains axilleas.me and www.axilleas.me with cert contents:

    # Certificate (PEM)
    sudo cat /etc/letsencrypt/live/axilleas.me/fullchain.pem|xclip
    
    # Key (PEM)
    sudo cat /etc/letsencrypt/live/axilleas.me/privkey.pem|xclip

License

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 4.0 International License.