From d3cb7d3f393a1a0088e2da57da500c93a0220459 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Tue, 7 Jul 2026 17:13:55 +0200 Subject: Add cgit role with testing of molecule service --- roles/cgit/templates/cgit.nginx.conf.j2 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 roles/cgit/templates/cgit.nginx.conf.j2 (limited to 'roles/cgit/templates/cgit.nginx.conf.j2') diff --git a/roles/cgit/templates/cgit.nginx.conf.j2 b/roles/cgit/templates/cgit.nginx.conf.j2 new file mode 100644 index 00000000..14256054 --- /dev/null +++ b/roles/cgit/templates/cgit.nginx.conf.j2 @@ -0,0 +1,19 @@ +server { + listen {{ cgit_port }}; + listen [::]:{{ cgit_port }}; + + server_name {{ cgit_hostname }}; + + root /usr/share/webapps/cgit; + + try_files $uri @cgit; + + location @cgit { + fastcgi_pass unix:/run/fcgiwrap/fcgiwrap.sock; + fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi; + fastcgi_param PATH_INFO $uri; + fastcgi_param QUERY_STRING $args; + fastcgi_param HTTP_HOST $server_name; + include fastcgi_params; + } +} -- cgit v1.2.3