* docs(deployment): note that the image works with all capabilities dropped
The app runs as a regular user with no capabilities in effect, and the
image has no setuid programs, so cap_drop ALL and no-new-privileges change
nothing day to day. Tested on v3.55.0 with the default user and with
user: 1000:1000 and a bind mount. Document that they work, for setups that
require them, instead of adding them to the default compose files.
Refs #544
* chore(docker): drop all capabilities and set no-new-privileges in compose
The app runs as a regular user with no capabilities in effect, so this
changes nothing day to day and limits what someone who broke into the
container could do. Added to the three compose files and the compose and
docker run examples in the docs, with a note for anyone running the
container as root.
Suggested by @zwimer in #544.
* docs: move the user docs to the website and fix what the code contradicts
The README is down to the pitch, a quick start and links. The docs/
pages that repeated the website (environment variables, sources, push
targets, notifications, force-push protection, SSO, Nix) and the root
NIX.md and certs/README.md are now short stubs pointing at the site,
after moving their remaining true facts there.
Checking those facts against the code also turned up site pages that
were wrong:
- SAML sign-in does not work from the UI, and the ACS URL was wrong
- the OIDC provider discovery URL lives under /api/auth
- force-push protection does not stop Gitea's own mirror schedule
- a read-only /app/certs mount stops the container at startup
- gitea-mirror-db on Nix does not touch the real database
- several environment variable rows described the wrong behavior
- DESTINATION_PROVIDER is not checked against the destination lock
The link checker now covers every markdown file in the repository, and
four screenshots nothing links to are gone.
* ci: check the environment variable reference against the code
scripts/check-env-docs.ts fails when the app reads a variable the
reference page does not list, or the page lists one nothing reads. The
variables that are read but deliberately undocumented (internal ones,
and those stored but never used) are listed in the script with a
reason, and the check also fails when one of those stops being read.
* docs: bring the maintainer docs up to date
CLAUDE.md, CONTRIBUTING.md, the development workflow, the SSO testing
guide, the Nix packaging notes and the site's own README and CLAUDE.md
described scripts, files, ports and behavior that no longer exist. They
now match the code: Astro 7, multiple sources and destinations, the real
CI steps, the test isolation rules, the TypeScript 7 type check
workaround, and the AGPL license.
GRACEFUL_SHUTDOWN.md and RECOVERY_IMPROVEMENTS.md are merged into
SHUTDOWN_AND_RECOVERY.md. It also records two gaps: a job stopped by a
clean shutdown is not resumed by recovery, and Docker's 10 second stop
timeout is shorter than the 30 second shutdown.
AGENTS.md now points at CLAUDE.md.
* docs: changelog for the docs consolidation
* ci: count the env config loader's envFlag reads in the env check
- Add support for custom CA certificates in Docker setup
- Two mounting options: individual certs or system CA bundle
- Automatic detection and configuration via NODE_EXTRA_CA_CERTS
- Enhanced documentation with setup guide in certs/README.md
- Added ca-certificates package to Alpine base image
- Updated docker-compose with clear volume mount examples
- Bump version to 2.21.0