embed homepage in a Go app #33

Merged
wanderer merged 1 commits from feature-embedded into master 2022-08-08 15:20:54 +02:00
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 2022-08-08 15:07:48 +02:00
wanderer self-assigned this 2022-08-08 15:07:48 +02:00
wanderer force-pushed feature-embedded from 869dd00b07 to ee50ff409b 2022-08-08 15:14:13 +02:00 Compare
wanderer force-pushed feature-embedded from ee50ff409b to 47cf7b9f48 2022-08-08 15:16:22 +02:00 Compare
wanderer force-pushed feature-embedded from 47cf7b9f48 to 573c9da829 2022-08-08 15:17:57 +02:00 Compare
wanderer merged commit cfe496dcb7 into master 2022-08-08 15:20:54 +02:00
wanderer added this to the General project 2022-08-08 16:22:31 +02:00
wanderer deleted branch feature-embedded 2022-08-08 16:23:32 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: dotya.ml/homepage#33
No description provided.