aboutsummaryrefslogtreecommitdiff
path: root/roles/git/templates
diff options
context:
space:
mode:
authorRoman Ilin <me@romanilin.is>2026-06-15 12:59:09 +0300
committerRoman Ilin <me@romanilin.is>2026-06-15 22:04:41 +0300
commit5e4bf1268c266e63d0e92e845ad910a2103b86ff (patch)
tree532c01a9658a05048ef1ba76d4f30fca84005643 /roles/git/templates
downloadinfrastructure-main.tar.gz
Diffstat (limited to 'roles/git/templates')
-rw-r--r--roles/git/templates/git_nginx.conf.j216
1 files changed, 16 insertions, 0 deletions
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;
+ }
+}