summaryrefslogtreecommitdiffstats
path: root/roles/cgit/templates/cgit.nginx.conf.j2
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2026-07-07 17:13:55 +0200
committerAhmed AbdelHalim <[email protected]>2026-07-07 17:16:46 +0200
commit28dad8e7184e131c434a935e70b40f400cece665 (patch)
treefffbfc46cbb1e33efa42a764cd3e024725010cf7 /roles/cgit/templates/cgit.nginx.conf.j2
parent01f6f5665beefb0e223e022d07fb9770a7cdbeb6 (diff)
Add cgit role with testing of molecule service
Diffstat (limited to 'roles/cgit/templates/cgit.nginx.conf.j2')
-rw-r--r--roles/cgit/templates/cgit.nginx.conf.j219
1 files changed, 19 insertions, 0 deletions
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;
+ }
+}