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
chore: add scaling param to the .drone.yml
fix: issue when dc build fails due to scale
Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #20
Co-Authored-By: wanderer <wanderer@noreply.git.dotya.ml>
Co-Committed-By: wanderer <wanderer@noreply.git.dotya.ml>
commit 384b118
refactor: remove redundant ipv6 enablement in env
* it is already enabled by default, as witnessed by this error message:
10-listen-on-ipv6-by-default.sh: error: IPv6 listen already enabled
commit abfd7b2
add: loadbalance using traefik
refactor: .drone.yml + don't run on {push,PR}
add: docker-compose-build pipeline
* general refactoring of .drone.yml
fix: incorrect dependency
* add: don't run img pull on PR
refactor: update .drone.yml logic
chore: adding docker-compose.yml
* it's in fact going to be docker-compose deployment
add: Dockerfile + update baseUrl
* also enhance footer partial that cries when a ref goes missing (such
as when a branch is merged)
Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #18
Co-Authored-By: wanderer <wanderer@noreply.git.dotya.ml>
Co-Committed-By: wanderer <wanderer@noreply.git.dotya.ml>