Commit Graph

4 Commits

Author SHA1 Message Date
surtur b796f72abc
go: add a 404 handler
All checks were successful
continuous-integration/drone/push Build is passing
2024-04-02 23:32:51 +02:00
surtur 2906fb1b88
chore: add todos [skip ci] 2023-08-13 16:00:27 +02:00
surtur d081a79f6d
go: add server read/write timeouts
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-19 22:35:42 +02:00
wanderer cfe496dcb7
embed homepage in a Go app (#33)
Some checks failed
continuous-integration/drone/push Build is failing
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
2022-08-08 15:20:50 +02:00