Skip to content

The web page is more cute Using 'embed' and files.#31

Open
athoune wants to merge 1 commit into
soulteary:mainfrom
athoune:embeded
Open

The web page is more cute Using 'embed' and files.#31
athoune wants to merge 1 commit into
soulteary:mainfrom
athoune:embeded

Conversation

@athoune
Copy link
Copy Markdown

@athoune athoune commented Sep 12, 2025

Template should use embed feature. "This is the way".

With embed.FS statics files can also be used.

  • Web template and assets are embedded
  • favicon
  • Serve Helvetica Neue Light in woff2 format
  • SVG logo is no more embedded in the HTML
  • Link to the font home and specify its license

See #27

@athoune
Copy link
Copy Markdown
Author

athoune commented Nov 7, 2025

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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant