aboutsummaryrefslogtreecommitdiff
path: root/gitolite/cgit/nginx.conf
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2026-07-07 19:04:17 +0000
committeronelin <oscar@nelin.dk>2026-07-07 19:04:17 +0000
commit56150650dc2f1adfb72301489d926a8a67b82b27 (patch)
tree37001a6463e6efec20ad2e45ba9fcdfacb23d7e0 /gitolite/cgit/nginx.conf
parentf458a536ac8d732e47a8dce4d92aa2f1b5a2c649 (diff)
Unify docker image
This makes it easier to manage and unifies the services that essentially belong together. Might consider making it a split configuration again later, but for now it makes much more sense such that fail2ban can better operate with all the available logs instead of managing the circus that is docker volumes.
Diffstat (limited to 'gitolite/cgit/nginx.conf')
-rw-r--r--gitolite/cgit/nginx.conf22
1 files changed, 22 insertions, 0 deletions
diff --git a/gitolite/cgit/nginx.conf b/gitolite/cgit/nginx.conf
new file mode 100644
index 0000000..f4a115b
--- /dev/null
+++ b/gitolite/cgit/nginx.conf
@@ -0,0 +1,22 @@
+server {
+ server_name $DOMAIN;
+
+ listen [::]:80;
+ listen 80;
+
+ access_log /var/log/nginx/cgit-access.log;
+ error_log /var/log/nginx/cgit-error.log;
+
+ root /var/www/htdocs/cgit;
+ try_files $uri @cgit;
+
+ location @cgit {
+ include fastcgi_params;
+ fastcgi_param SCRIPT_FILENAME /var/www/htdocs/cgit/cgit.cgi;
+ fastcgi_pass unix:/run/fcgiwrap/fcgiwrap.sock;
+
+ fastcgi_param PATH_INFO $uri;
+ fastcgi_param QUERY_STRING $args;
+ fastcgi_param HTTP_HOST $server_name;
+ }
+}