embed homepage in a Go app #33

Merged
wanderer merged 1 commits from feature-embedded into master 2 months ago
Owner

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.

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.
wanderer added the enhancement feature labels 2 months ago
wanderer self-assigned this 2 months ago
wanderer force-pushed feature-embedded from 869dd00b07 to ee50ff409b 2 months ago
wanderer force-pushed feature-embedded from ee50ff409b to 47cf7b9f48 2 months ago
wanderer force-pushed feature-embedded from 47cf7b9f48 to 573c9da829 2 months ago
wanderer referenced this issue from a commit 2 months ago
wanderer merged commit cfe496dcb7 into master 2 months ago
wanderer referenced this issue from a commit 2 months ago
wanderer added this to the General project 2 months ago
wanderer deleted branch feature-embedded 2 months ago
continuous-integration/drone/pr Build is passing
The pull request has been merged as cfe496dcb7.
Sign in to join this conversation.
No reviewers
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…
There is no content yet.