diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-03-03 14:11:45 +0000 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-03-03 14:11:45 +0000 |
commit | 9920d404374275ef80b21421ae3a1ab8211fd88d (patch) | |
tree | 57b32073b91ea2f2071c63d80a9ec8978a5a516e /roles/gitserver/files/git.conf | |
parent | dda24d15031f6ca179bede64beef9ff3f6e7d6eb (diff) | |
download | infra-9920d404374275ef80b21421ae3a1ab8211fd88d.tar.gz infra-9920d404374275ef80b21421ae3a1ab8211fd88d.tar.bz2 infra-9920d404374275ef80b21421ae3a1ab8211fd88d.zip |
Rename git role to gitserver
Diffstat (limited to 'roles/gitserver/files/git.conf')
-rw-r--r-- | roles/gitserver/files/git.conf | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/gitserver/files/git.conf b/roles/gitserver/files/git.conf new file mode 100644 index 0000000..1434cda --- /dev/null +++ b/roles/gitserver/files/git.conf @@ -0,0 +1,16 @@ +# Source: https://gist.github.com/kierdwyn/3745400e6a184f621b92 + +location ~ /.+/(info/refs|git-upload-pack|git-receive-pack) { + # Set chunks to unlimited, as the body's can be huge. + client_max_body_size 0; + + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend; + fastcgi_param GIT_HTTP_EXPORT_ALL ""; + fastcgi_param GIT_PROJECT_ROOT /srv/git; + fastcgi_param PATH_INFO $uri; + # Forward REMOTE_USER as we want to know when we are authenticated. + fastcgi_param REMOTE_USER $remote_user; + + fastcgi_pass unix:/run/fcgiwrap.sock; +} |