as a result of #33:
* traefik proxy according to compose was pointing nowhere
* traefik was attempting to redirect as it used to when the site was
behind nginx, which is unneccessary now, the go app can properly
handle paths such as '/tags/'.
the entire './public' folder that Hugo produces is embedded into a
variable of 'embed.FS' type and served directly using the default http
mux that Go std offers.
ci, pre-commit, Dockerfile and compose file have all been updated
accordingly.
nginx is no longer needed to front the site files, which enabled
switching to a SCRATCH image containing just a single statically linked
"homepage" app that has all files (html, css, js) embedded.
the containers are otherwise empty (as the name SCRATCH suggests), which
further decreases potential attack surface area.
Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #33
the :2.6.3 tag is apparently only available for arm arch, it's probably
best not to base the decision to bump versions on a new release
notification. instead, availability of the new version for our default
arch (amd64) should always be checked:
podman run -it --rm docker.io/library/traefik:2.6.3
Trying to pull docker.io/library/traefik:2.6.3...
Error: choosing an image from manifest list docker://traefik:2.6.3: no image found in manifest list for architecture amd64, variant "", OS linux
~ took 2s
(╯°□°)╯︵ ┻━┻ 125 🔥 podman run -it --rm docker.io/library/traefik:2.7
Trying to pull docker.io/library/traefik:2.7...
Getting image source signatures
Copying blob 491249faa733 done
commit bc6140098f698dbdf9f40b17e68a93d866eb93b5
Author: surtur <a_mirre@utb.cz>
Date: Tue Mar 29 18:32:39 2022 +0200
add commentary to colour codes
since we're keeping the original names of colour variables from the
theme, it's a good idea to at least have the usage of them (somewhat)
documented.
commit 927909be604187b8e178ce009d88ac6b26c0b3c5
Author: surtur <a_mirre@utb.cz>
Date: Tue Mar 29 18:24:43 2022 +0200
increase pre border-radius to 5px
commit 62f0d1654028beb625453ad19b0138574e999861
Author: surtur <a_mirre@utb.cz>
Date: Tue Mar 29 18:18:02 2022 +0200
change theme colours