- HTML 39.1%
- CSS 36.3%
- JavaScript 23.5%
- Dockerfile 1.1%
|
Some checks failed
Build and publish image / build (push) Failing after 13s
Builds from main publish latest, main and sha-<commit>. A pushed vX.Y.Z tag also publishes X.Y.Z, X.Y and X. The workflow no longer creates date-named releases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .forgejo/workflows | ||
| .dockerignore | ||
| about.html | ||
| app.js | ||
| compose.yml | ||
| Dockerfile | ||
| favicon.svg | ||
| index.html | ||
| nginx.conf | ||
| projects.js | ||
| README.md | ||
| style.css | ||
X27-Website
The website for XlabsX27, the brand X27 publishes open-source projects under. It shows the projects on git.xlabsx27.com and puts the X27 Toolbox install command front and centre.
Plain HTML, CSS and ES modules. No framework, no build step.
Files
| File | What it is |
|---|---|
index.html |
Home page: hero with the copy pill, featured cards, projects, images and packages |
about.html |
About page: principles, how it's built, links. Served at /about too |
style.css |
Red and black design, dark only |
app.js |
Copy buttons, project grid and filters, live data, scroll reveal, and the sun button that refuses light mode |
projects.js |
All content: projects, images, packages, the toolbox command. Edit this to change the page |
nginx.conf |
Static serving, security headers, and a proxy for Forgejo's repo search |
Dockerfile |
Unprivileged nginx (uid 101, port 8080) with a healthcheck |
compose.yml |
Runs the image read-only, with all capabilities dropped |
.forgejo/workflows/publish-image.yml |
Builds and publishes the image |
Live data
The page renders the list in projects.js first, then asks Forgejo's
/api/v1/repos/search for stars, last update and language. Public repos that aren't in
projects.js show up under Other. Add a repo to HIDDEN to leave it out.
Forgejo sends no CORS headers, so the browser can't call it from another origin.
nginx proxies /api/v1/repos/search (GET only, no cookies) to Forgejo. Under
python3 -m http.server there is no proxy, so the page keeps the built-in list.
Run locally
python3 -m http.server 8080 # static only, built-in data
docker compose up --build # with the live-data proxy, on port 8080
PORT=8099 docker compose up --build # another host port
Image
Every push to main (and a weekly rebuild) publishes a multi-arch image (amd64, arm64) to
git.xlabsx27.com/x27/x27-website, tagged latest, main and sha-<commit>. Pushing a
tag like v1.2.0 publishes 1.2.0, 1.2 and 1 as well.
Deploy with the compose.yml here, or:
docker run -d --name x27-website -p 8080:8080 --read-only --tmpfs /tmp \
--cap-drop ALL --restart unless-stopped git.xlabsx27.com/x27/x27-website:latest
The workflow needs a PUBLISH_TOKEN secret (repo or org Settings → Actions → Secrets): a
Forgejo access token for X27 with the write:package scope.