embed homepage in a Go app #33
No reviewers
Labels
No Label
WIP
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
WIP
bug
docs done
docs needed
duplicate
enhancement
feature
gemini
invalid
legal-ish
needs help
onionz
proposal
question
resolved
security
spam
todo
upstream-related
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: dotya.ml/homepage#33
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature-embedded"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
869dd00b07
toee50ff409b
ee50ff409b
to47cf7b9f48
47cf7b9f48
to573c9da829