| # Smart Git HTTP export for the ATS CI GitHub mirrors. |
| # |
| # This is included by the dedicated github-mirror-smart-http container. ATS |
| # terminates public HTTPS and remaps /mirror/ traffic to this container on |
| # 127.0.0.1:9417. |
| |
| <IfModule !cgid_module> |
| LoadModule cgid_module modules/mod_cgid.so |
| </IfModule> |
| |
| SetEnv GIT_PROJECT_ROOT /usr/local/apache2/mirror |
| SetEnv GIT_HTTP_EXPORT_ALL 1 |
| |
| # During CI fanout, git-upload-pack can spend more than httpd's default |
| # 60 seconds generating a large pack before it writes the first response bytes. |
| Timeout 600 |
| CGIDScriptTimeout 600 |
| |
| CustomLog "logs/access_log" combined |
| |
| ScriptAlias /mirror/ /usr/lib/git-core/git-http-backend/ |
| |
| <Directory "/usr/lib/git-core"> |
| Options +ExecCGI |
| AllowOverride None |
| Require all granted |
| </Directory> |
| |
| <LocationMatch "^/mirror/.*/git-receive-pack$"> |
| Require all denied |
| </LocationMatch> |