{"id":51423307,"url":"https://github.com/paltaio/page","last_synced_at":"2026-07-05T01:02:34.166Z","repository":{"id":364414270,"uuid":"1267558508","full_name":"paltaio/page","owner":"paltaio","description":"Self-hosted static site host with access rules, snapshots, and analytics.","archived":false,"fork":false,"pushed_at":"2026-06-12T23:14:37.000Z","size":414,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-13T00:23:04.535Z","etag":null,"topics":["axum","docker","rust","self-hosted","sqlite","web-hosting"],"latest_commit_sha":null,"homepage":"https://palta.page","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paltaio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":null,"dco":null,"cla":null}},"created_at":"2026-06-12T16:45:00.000Z","updated_at":"2026-06-12T23:14:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/paltaio/page","commit_stats":null,"previous_names":["paltaio/page"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/paltaio/page","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paltaio%2Fpage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paltaio%2Fpage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paltaio%2Fpage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paltaio%2Fpage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paltaio","download_url":"https://codeload.github.com/paltaio/page/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paltaio%2Fpage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35140190,"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-07-04T02:00:05.987Z","response_time":113,"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":["axum","docker","rust","self-hosted","sqlite","web-hosting"],"created_at":"2026-07-05T01:02:29.027Z","updated_at":"2026-07-05T01:02:34.158Z","avatar_url":"https://github.com/paltaio.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Page\n\nSelf-hosted host for static sites with a built-in admin. Upload a folder or a zip and it is live at its own address, with optional password, PIN, email, or country access rules, snapshots, and per-site analytics. It runs as a single binary with the admin UI and database embedded.\n\n## Deploy\n\nRequires Docker.\n\n1. Start it, pointing at the URL visitors will use:\n\n   ```sh\n   PAGE_PUBLIC_ORIGIN=https://page.example.com docker compose up -d\n   ```\n\n   You can also edit the environment in `compose.yml` and run `docker compose up -d`.\n\n2. Read the one-time admin token from the logs:\n\n   ```sh\n   docker compose logs page | grep \"initial admin token\"\n   ```\n\n3. Open `https://page.example.com/admin/#?admintoken=\u003cTOKEN\u003e` and register a passkey. That becomes the first admin account, and the token is then spent.\n\nAll state (sites, uploads, settings, analytics) lives in the `pages-data` volume mounted at `/data`. Back that up to back up everything.\n\n## Reverse proxy\n\nRun Page behind a TLS-terminating proxy. Set `PAGE_PUBLIC_ORIGIN` to the public URL and `PAGE_TRUSTED_PROXIES` to the proxy IP(s) so the visitor IP is read from `X-Forwarded-For`. The trusted-proxy setting is required for correct visitor analytics and country access rules. Passkeys require `PAGE_PUBLIC_ORIGIN` to match the address visitors actually use.\n\nCountry access rules only evaluate forwarded addresses from trusted proxies. Set `PAGE_TRUSTED_PROXIES` to the exact egress IP(s) of the proxy; values are matched as exact IPs, not CIDR ranges. Configure the proxy to overwrite `X-Forwarded-For` with the client address rather than appending to it. A request that carries a `Forwarded` or `X-Forwarded-For` header from a peer outside the trusted list fails the country check. Treat country rules as best-effort filtering, not a hard security boundary.\n\n## Sign-in\n\nStaff sign in with passkeys. To also offer email sign-in codes, set the `PAGE_SMTP_*` variables; email sign-in is off when no SMTP host is configured.\n\n## GeoIP (optional)\n\nCountry analytics and country access rules need a GeoIP database. Place a MaxMind GeoLite2 (City or Country) or a db-ip `.mmdb` file in the data directory, or point `PAGE_GEOIP_DB` at one.\n\n## Configuration\n\n| Variable | Default | Description |\n| --- | --- | --- |\n| `PAGE_PUBLIC_ORIGIN` | `http://localhost:3000` | Public URL visitors use. Set this in production. |\n| `PAGE_BIND` | `0.0.0.0:3000` | Listen address. |\n| `PAGE_DATA_DIR` | `/data` | Directory holding all state. |\n| `PAGE_TRUSTED_PROXIES` | none | Comma-separated proxy IPs trusted for `X-Forwarded-For`. |\n| `PAGE_GEOIP_DB` | auto | Path to a GeoIP `.mmdb`. Defaults to scanning the data directory. |\n| `PAGE_UPLOAD_MAX_BYTES` | `536870912` | Maximum upload size in bytes. |\n| `PAGE_ADMIN_TOKEN_ENABLED` | `true` | Enables the one-time first-run admin token. |\n| `PAGE_SMTP_HOST` | none | SMTP server for email sign-in codes. |\n| `PAGE_SMTP_PORT` | `587` | SMTP port. |\n| `PAGE_SMTP_TLS` | `true` | Use TLS for SMTP. |\n| `PAGE_SMTP_FROM` | none | From address. Required when SMTP is set. |\n| `PAGE_SMTP_USERNAME` | none | SMTP username. |\n| `PAGE_SMTP_PASSWORD` | none | SMTP password. |\n\n## Local development\n\nRequires Rust and pnpm. The admin bundle is embedded at build time, so build it before the server:\n\n```sh\npnpm --dir admin install\npnpm --dir admin build\ncargo run\n```\n\nThe server then listens on `http://localhost:3000`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaltaio%2Fpage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaltaio%2Fpage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaltaio%2Fpage/lists"}