Commit Graph
15 Commits
Author SHA1 Message Date
ARUNAVO RAY 25a1ce059d chore(docker): drop all capabilities and set no-new-privileges in compose (#545)
* 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.
2026-11-24 13:22:40 +05:30
ARUNAVO RAY 3d763cf75e docs: move the user docs to the website and bring the rest up to date (#529)
* 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
2026-11-17 16:56:57 +05:30
ARUNAVO RAY 01a3b08dac feat: support reverse proxy path prefix deployments (#257)
* feat: support reverse proxy path prefixes

* fix: respect BASE_URL in SAML callback fallback

* fix: make BASE_URL runtime configurable
2026-04-09 12:32:59 +05:30
Sulaiman Khan Ghori 8d7ca8dd8f Add GITHUB_EXCLUDED_ORGS support for organization filtering 2025-07-18 15:58:04 -07:00
Arunavo Ray 6cfe43932f Fixing issues with Better Auth 2025-07-11 00:00:37 +05:30
Arunavo Ray 9d7cb0f372 feat: add custom CA certificate support
- 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
2025-07-07 16:20:24 +05:30
Arunavo Ray d79e4fecf4 Updated Docker compose dev 2025-06-17 10:30:33 +05:30
Arunavo Ray 0f671a4088 feat: add support for mirroring wiki pages in configuration 2025-06-11 19:48:24 +05:30
Arunavo Ray fb73f33aeb fix: update healthcheck endpoints for Gitea services in docker-compose files 2025-05-22 22:48:33 +05:30
Arunavo Ray 6d13ff29ca feat: migrate from Redis to SQLite for event handling and notifications 2025-05-20 19:09:48 +05:30
Arunavo Ray 8f1b97f35b ✨ Enhance Redis connection handling with retry logic and improved error logging 2025-05-19 11:08:49 +05:30
Arunavo Ray c92af8b6b1 ✨ Update gitea-mirror-dev service to always build from local sources in development environment 2025-05-19 10:35:14 +05:30
Arunavo Ray 6efbfa6dd4 ✨ Update Redis configuration and Docker setup; improve README and code structure for clarity 2025-05-19 09:51:36 +05:30
Arunavo Ray 4c134c1302 ✨ Update README and docker-compose.dev.yml to use modern 'docker compose' syntax 2025-05-19 09:26:49 +05:30
Arunavo Ray 5d40023de0 🎉 Gitea Mirror: Added 2025-05-18 09:31:23 +05:30