The web page is more cute Using 'embed' and files.#31
Open
athoune wants to merge 1 commit into
Open
Conversation
Author
|
OMG, the conflict resolution is not trivial. Let me see. |
TuzelKO
pushed a commit
to TuzelKO/apt-proxy
that referenced
this pull request
May 24, 2026
From bldrdash/apt-proxy and athoune/apt-proxy (PR soulteary#31 on soulteary/apt-proxy): - Add --async-benchmark flag (default true) to skip mirror benchmarking on startup when a mirror is already known; wired through config/state/rewriter - Add --version flag: prints version/commit/dirty and exits - Inject version metadata at build time via Makefile ldflags (-X config.Version/Commit/Dirty) - Log version info on server startup - Extract home page CSS to templates/assets/style.css (embedded via go:embed); add /assets/:file Fiber route to serve static assets - Add deploy/systemd/apt-proxy.service with security hardening - Bump docker/login-action and docker/setup-qemu-action to v4 in release.yaml Inspired by bldrdash/apt-proxy (async-benchmark, --version, systemd) and athoune/apt-proxy PR soulteary#31 on soulteary/apt-proxy (embedded assets).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Template should use
embedfeature. "This is the way".With
embed.FSstatics files can also be used.See #27