From 884df671a1bd744d3bc004cd8a6f2b5838d24b7b Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 11 May 2026 10:17:53 +0200 Subject: feat: initial commit — Apache autoindex theme with matrix rain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - gen_web_hook.sh: generates _header.html/_footer.html per repo/category/package dir - .assets/matrix-rain.js: danix2-engine matrix rain, header-scoped (65% width, right-aligned) - Category headers include gradient accent pill with category name - htaccess: autoindex config, MIME types, cache headers, IndexIgnore .assets - vhost.conf: Apache VirtualHost template (values masked for public repo) - CLAUDE.md: repo architecture docs Co-Authored-By: Claude Sonnet 4.6 --- htaccess | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 htaccess (limited to 'htaccess') diff --git a/htaccess b/htaccess new file mode 100644 index 0000000..bb92f15 --- /dev/null +++ b/htaccess @@ -0,0 +1,43 @@ +# danix Slackware package repository + +Options +Indexes + +# ── Autoindex options ───────────────────────────────────────────────────────── +IndexOptions FancyIndexing HTMLTable IgnoreCase SuppressDescription SuppressHTMLPreamble NameWidth=* FoldersFirst ScanHTMLTitles + +IndexOrderDefault Ascending Name + +# ── Header / Footer (static HTML, generated by gen_web_hook) ───────────────── +HeaderName _header.html +ReadmeName _footer.html + +# ── Hide internal files from the listing ───────────────────────────────────── +IndexIgnore _header.html _footer.html .htaccess .htpasswd \ + CHECKSUMS.md5 CHECKSUMS.md5.asc CHECKSUMS.md5.gz CHECKSUMS.md5.gz.asc \ + FILELIST.TXT MANIFEST.bz2 \ + PACKAGES.TXT PACKAGES.TXT.gz \ + ChangeLog.txt.gz GPG-KEY \ + .assets + +# ── Icons ───────────────────────────────────────────────────────────────────── +AddIconByType (DIR,/icons-pkg/dir.svg) httpd/unix-directory +AddIcon /icons-pkg/dir.svg ^^DIRECTORY^^ +AddIcon /icons-pkg/package.svg .txz +AddIcon /icons-pkg/signature.svg .asc +AddIcon /icons-pkg/checksum.svg .md5 .sha256 +AddIcon /icons-pkg/compressed.svg .gz .bz2 +AddIcon /icons-pkg/rss.svg .rss +AddIcon /icons-pkg/file.svg .txt .lst .meta .dep +DefaultIcon /icons-pkg/file.svg + +# ── MIME types for Slackware-specific extensions ───────────────────────────── +AddType application/octet-stream .txz .dep +AddType text/plain .txt .asc .lst .meta .md5 .sha256 + +# ── Cache control ───────────────────────────────────────────────────────────── + + Header set Cache-Control "public, max-age=86400" + + + Header set Cache-Control "public, max-age=3600" + -- cgit v1.2.3