{"id":50787072,"url":"https://github.com/teppyboy/sandrone-autoindex","last_synced_at":"2026-06-12T08:33:08.467Z","repository":{"id":344907407,"uuid":"1183605119","full_name":"teppyboy/sandrone-autoindex","owner":"teppyboy","description":"Another autoindex theme (and a WebDAV client) for nginx.","archived":false,"fork":false,"pushed_at":"2026-06-09T14:53:25.000Z","size":12495,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-09T16:21:39.983Z","etag":null,"topics":["nginx-autoindex","nginx-webdav","webdav-client"],"latest_commit_sha":null,"homepage":"http://sandrone-autoindex.tretrauit.me/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teppyboy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-16T19:22:00.000Z","updated_at":"2026-06-09T14:54:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/teppyboy/sandrone-autoindex","commit_stats":null,"previous_names":["teppyboy/sandrone-autoindex"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/teppyboy/sandrone-autoindex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teppyboy%2Fsandrone-autoindex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teppyboy%2Fsandrone-autoindex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teppyboy%2Fsandrone-autoindex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teppyboy%2Fsandrone-autoindex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teppyboy","download_url":"https://codeload.github.com/teppyboy/sandrone-autoindex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teppyboy%2Fsandrone-autoindex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34236551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nginx-autoindex","nginx-webdav","webdav-client"],"created_at":"2026-06-12T08:33:06.758Z","updated_at":"2026-06-12T08:33:08.456Z","avatar_url":"https://github.com/teppyboy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sandrone-AutoIndex\n\nAnother autoindex theme (and a WebDAV client) for nginx.\n\n\u003e [!WARNING]\n\u003e This project is fully vibe-coded, expect many hidden bugs and slow maintenance :)\n\n## Why?\n\nThis autoindex UI uses HTML to render instead of XSLT, which in my opinion is simpler and also more customizable.\n\n## Usage\n\n### Basic usage\n\nThis will just install the autoindex without any optional features.\n\n1. Copy the theme to `_autoindex` folder.\n2. Config `nginx.conf` as below:\n```conf\nlocation / {\n    root data/webdav;\n    autoindex on;\n    add_before_body /_autoindex/before.html;\n    add_after_body  /_autoindex/after.html;\n    sub_filter '\u003chead\u003e' '\u003chead\u003e\u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e';\n    sub_filter_once on;\n}\nlocation /_autoindex/ {\n    alias data/webdav/_autoindex/;\n    autoindex off;\n    add_header Cache-Control \"no-cache\";\n}\n```\nIn this config, the `_autoindex` folder is inside `data/webdav/` folder for your reference. \n\n### Reusable remote assets\n\nLarge decorative assets are hosted by the project demo instead of bundled in the\nrelease archive. The Sandrone background defaults to:\n\n```text\nhttps://sandrone-autoindex.tretrauit.me/demo/assets/bg/140384272_p0.jpg\n```\n\nThis keeps client installs small. To self-host the image, define this CSS\nvariable before loading `assets/index.css`:\n\n```html\n\u003cstyle\u003e\n  :root {\n    --sandrone-bg-image: url('/_autoindex/assets/bg/140384272_p0.jpg');\n  }\n\u003c/style\u003e\n```\n\nThe live demo is published at `https://sandrone-autoindex.tretrauit.me/demo/`.\n\n### Basic WebDAV client\n\nThis UI can also act as a WebDAV client, which supports basic file management directly in the web.\n\u003e [!NOTE]\n\u003e It is unstable and should be used for convenience only.\n\nExample nginx config for the WebDAV server to be supported by this web UI:\n\n```conf\nlocation = /_autoindex/auth-check {\n    auth_basic \"Sandrone\";\n    auth_basic_user_file /etc/nginx/webdav.htpasswd;\n    add_header Cache-Control \"no-store\" always;\n    limit_except GET HEAD {\n        deny all;\n    }\n    try_files /__autoindex_auth_check_never_exists__ =204;\n}\nlocation /_autoindex/ {\n    alias data/webdav/_autoindex/;\n    autoindex off;\n    dav_methods off;\n    add_header Cache-Control \"no-cache\";\n}\nlocation / {\n    root data/webdav;\n    client_max_body_size 1G; # choose the real upload limit for your site\n\n    add_header Allow \"GET, HEAD, OPTIONS, PUT, DELETE, MKCOL, MOVE\" always;\n    add_header DAV \"1, 2\" always;\n    add_header MS-Author-Via \"DAV\" always;\n    if ($request_method = OPTIONS) {\n        return 204;\n    }\n\n    dav_methods PUT DELETE MKCOL MOVE;\n    create_full_put_path off;\n    dav_access user:rw group:r all:r;\n\n    autoindex on;\n    add_before_body /_autoindex/before.html;\n    add_after_body  /_autoindex/after.html;\n    sub_filter '\u003chead\u003e' '\u003chead\u003e\u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e';\n    sub_filter_once on;\n\n    # Anonymous reads; auth required for writes.\n    limit_except GET HEAD OPTIONS {\n        auth_basic \"Sandrone\";\n        auth_basic_user_file /etc/nginx/webdav.htpasswd;\n    }\n}\n```\n\nBrowser sign-in uses Basic Auth and stores the generated `Authorization` header\nin session storage, or local storage when \"remember me\" is enabled. Serve\nuntrusted user HTML/JS from a separate origin, or force downloads/sandboxing with\nstrict response headers, so same-origin files cannot read those credentials.\n\n### Anubis integration\n\nToo hard, you should figure out yourself, but TL;DR follow the Anubis setup guide and add WebDAV methods to bypass Anubis and go directly to the backend server.\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteppyboy%2Fsandrone-autoindex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteppyboy%2Fsandrone-autoindex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteppyboy%2Fsandrone-autoindex/lists"}