From 5e4bf1268c266e63d0e92e845ad910a2103b86ff Mon Sep 17 00:00:00 2001 From: Roman Ilin Date: Mon, 15 Jun 2026 12:59:09 +0300 Subject: --- roles/git/templates/git_nginx.conf.j2 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 roles/git/templates/git_nginx.conf.j2 (limited to 'roles/git/templates') diff --git a/roles/git/templates/git_nginx.conf.j2 b/roles/git/templates/git_nginx.conf.j2 new file mode 100644 index 0000000..cd37f25 --- /dev/null +++ b/roles/git/templates/git_nginx.conf.j2 @@ -0,0 +1,16 @@ +server { + listen 80; + server_name _; + + root /usr/share/cgit; + try_files $uri @cgit; + + location @cgit { + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME /var/www/cgi-bin/cgit; + fastcgi_param PATH_INFO $uri; + fastcgi_param QUERY_STRING $args; + fastcgi_param HTTP_HOST $server_name; + fastcgi_pass unix:/run/fcgiwrap-nginx.sock; + } +} -- cgit