How athul675/gitea works
This repository is a deployment reference for self-hosted Gitea, with cumulative per-user Git storage quotas enforced by server-side hooks. The documented push path runs through Nginx and Gitea to a repository hook: pre-receive checks usage and reserves quota; post-receive supports accounting after the push. PostgreSQL holds quota state, while SQL files define and seed it. The repository also supplies service, proxy, and Fail2ban configuration. The source excerpts are unavailable, so relationships below are limited to those stated in the README.
Main entry points: quota-pre-receive Pre-receive check · quota-post-receive Post-receive accounting · gitea-filter.conf Fail2ban filter · install-hooks.sh Hook installer
Components 14
Ingress and security
- Nginx proxy
configs/nginx.conf - Fail2ban filter
configs/fail2ban/gitea-filter.conf - Fail2ban jail
configs/fail2ban/gitea-jail.local
Gitea service
- Gitea server
- Gitea settings
configs/app.ini.example - Service unit
configs/gitea.service - Git repositories
Quota enforcement
- Hook installer
scripts/install-hooks.sh - Pre-receive check
scripts/quota-pre-receive - Post-receive accounting
scripts/quota-post-receive
Quota persistence
- PostgreSQL
- Quota schema
sql/01_schema.sql - Quota allocation
sql/02_seed_quotas.sql
Other components
- Git client
Connections 14
- Git client → Nginx proxy: sends HTTP
README.md - Nginx proxy → Gitea server: proxies traffic
README.md - Gitea server → Git repositories: manages repositories
README.md - Gitea server → PostgreSQL: uses database
README.md - Gitea server → Pre-receive check: runs hook
README.md - Gitea server → Post-receive accounting: runs hook
README.md - Hook installer → Pre-receive check: installs centrally
README.md - Hook installer → Post-receive accounting: installs centrally
README.md - Pre-receive check → PostgreSQL: checks and reserves
README.md - Post-receive accounting → PostgreSQL: tracks usage
README.md - Quota schema → PostgreSQL: defines tables
README.md - Quota allocation → PostgreSQL: seeds quotas
README.md - Fail2ban filter → Fail2ban jail: filters jail events
README.md - Fail2ban filter → Gitea server: mitigates threats
README.md