From b360c6f62c3a99bbe57b7d0c7f5fa55f9336a563 Mon Sep 17 00:00:00 2001 From: Nate Buttke Date: Mon, 27 Dec 2021 19:11:27 -0800 Subject: restart repo --- files/etc/cgitrc | 18 ++++++++++++++++++ files/etc/cgitrc.debian | 17 +++++++++++++++++ files/etc/nginx.conf | 31 +++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 files/etc/cgitrc create mode 100644 files/etc/cgitrc.debian create mode 100644 files/etc/nginx.conf (limited to 'files/etc') diff --git a/files/etc/cgitrc b/files/etc/cgitrc new file mode 100644 index 0000000..809851b --- /dev/null +++ b/files/etc/cgitrc @@ -0,0 +1,18 @@ +# +# cgit config +# see cgitrc(5) for details + +#paths within /usr/share/webapps/cgit +css=/cgit.css +logo= + #/cgit.png + +#Folder with all git repositories +scan-path=/srv/git/ + +# root for all cgit links +virtual-root=/ + +#customization +root-title=git.nategb.xyz +root-desc=software projects of Nate Buttke diff --git a/files/etc/cgitrc.debian b/files/etc/cgitrc.debian new file mode 100644 index 0000000..1d12da9 --- /dev/null +++ b/files/etc/cgitrc.debian @@ -0,0 +1,17 @@ +# cgit config +# see cgitrc(5) for details + +#paths within /usr/share/cgit +css=/cgit.css +logo= + #/cgit.png + +#Folder with all git repositories +scan-path=/srv/git/ + +# root for all cgit links +virtual-root=/ + +#customization +root-title=git.nategb.xyz +root-desc=software projects of Nate Buttke diff --git a/files/etc/nginx.conf b/files/etc/nginx.conf new file mode 100644 index 0000000..67739d4 --- /dev/null +++ b/files/etc/nginx.conf @@ -0,0 +1,31 @@ +user http; +worker_processes auto; +worker_cpu_affinity auto; + +events { + multi_accept on; + worker_connections 1024; +} + +http { + charset utf-8; + sendfile on; + tcp_nopush on; + tcp_nodelay on; + server_tokens off; + log_not_found off; + types_hash_max_size 4096; + client_max_body_size 16M; + + # MIME + include mime.types; + default_type application/octet-stream; + + # logging + access_log /var/log/nginx/access.log; + error_log /var/log/nginx/error.log warn; + + # load configs + include /etc/nginx/conf.d/*.conf; + include /etc/nginx/sites-enabled/*; +} -- cgit v1.2.3