summaryrefslogtreecommitdiffstats
path: root/usr/local/etc
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-04-29 19:55:01 +0000
committerJoe <bousset.rudy@gmail.com>2022-04-29 19:55:01 +0000
commit7a7626450ce0047728eff119553af9ceca413a98 (patch)
tree4b5bd99ccc6c4c429dc470b8d1a1b16bbb8607f9 /usr/local/etc
parentgood progress, will finish tomorrow (diff)
downloadjoe-conf-7a7626450ce0047728eff119553af9ceca413a98.tar.gz
joe-conf-7a7626450ce0047728eff119553af9ceca413a98.tar.bz2
joe-conf-7a7626450ce0047728eff119553af9ceca413a98.tar.xz
joe-conf-7a7626450ce0047728eff119553af9ceca413a98.tar.zst
joe-conf-7a7626450ce0047728eff119553af9ceca413a98.zip
filters
Diffstat (limited to 'usr/local/etc')
-rw-r--r--usr/local/etc/cgitrc27
-rw-r--r--usr/local/etc/nginx/nginx.conf34
2 files changed, 36 insertions, 25 deletions
diff --git a/usr/local/etc/cgitrc b/usr/local/etc/cgitrc
index bf973e6..3774234 100644
--- a/usr/local/etc/cgitrc
+++ b/usr/local/etc/cgitrc
@@ -16,22 +16,28 @@ virtual-root=/
root-title=GitJoe
root-desc=where the good code belongs
-clone-url=git://gitjoe.xyz/$CGIT_REPO_URL jozan@gitjoe.xyz:$CGIT_REPO_URL
+clone-url=git://gitjoe.xyz/$CGIT_REPO_URL
-enable-index-owner=0
+enable-index-owner=1
enable-index-links=0
enable-log-filecount=1
enable-log-linecount=1
enable-commit-graph=1
enable-remote-branches=1
+strict-export=git-daemon-export-ok
+remove-suffix=1
+
+about-filter=pandoc
+source-filter=/usr/local/lib/cgit/filters/syntax-highlighting-edited.sh
+
snapshots=tar.gz tar.bz tar.xz
-max-stats=quarter
+max-stats=year
#root-readme=/usr/local/www/cgit/about.htm
#root-readme=/usr/home/git/repos/about
-enable-index-owner=1
-
+readme=:README.org
+readme=:readme.org
readme=:README.md
readme=:readme.md
readme=:README.mkd
@@ -46,6 +52,8 @@ readme=:README.txt
readme=:readme.txt
readme=:README
readme=:readme
+readme=:INSTALL.org
+readme=:install.org
readme=:INSTALL.md
readme=:install.md
readme=:INSTALL.mkd
@@ -61,6 +69,9 @@ readme=:install.txt
readme=:INSTALL
readme=:install
-#scan-path=/usr/local/git/jozan
-#scan-path=/usr/local/git/salad
-#include=/usr/local/etc/cgitrepos/jozan
+section=jozan
+scan-path=/usr/local/git/jozan
+section=salad
+scan-path=/usr/local/git/salad
+section=salad-joe
+scan-path=/usr/local/git/salad-joe
diff --git a/usr/local/etc/nginx/nginx.conf b/usr/local/etc/nginx/nginx.conf
index 4f307ab..904604c 100644
--- a/usr/local/etc/nginx/nginx.conf
+++ b/usr/local/etc/nginx/nginx.conf
@@ -71,22 +71,22 @@ http {
location ~ /\.ht {
deny all;
}
- location @jozan {
- include fastcgi_params;
- root /usr/local/www/gitjoe/jozan;
- try_files $uri @jozan;
- index cgit.cgi;
- fastcgi_param SCRIPT_FILENAME $document_root/cgit.cgi;
- fastcgi_param PATH_INFO $uri;
- fastcgi_param QUERY_STRING $args;
- fastcgi_param HTTP_HOST $server_name;
- fastcgi_param CGIT_CONFIG /usr/local/etc/cgitusers/jozan;
- fastcgi_pass unix:/var/run/fcgiwrap/fcgiwrap.sock;
-
- gzip off;
- #rewrite ^ https://$server_name$request_uri permanent;
- rewrite ^/([^/]+/.*)?$ /cgit.cgi?url=$1 break;
- }
+# location @jozan {
+# include fastcgi_params;
+# root /usr/local/www/gitjoe/jozan;
+# try_files $uri @jozan;
+# index cgit.cgi;
+# fastcgi_param SCRIPT_FILENAME $document_root/cgit.cgi;
+# fastcgi_param PATH_INFO $uri;
+# fastcgi_param QUERY_STRING $args;
+# fastcgi_param HTTP_HOST $server_name;
+# fastcgi_param CGIT_CONFIG /usr/local/etc/cgitusers/jozan;
+# fastcgi_pass unix:/var/run/fcgiwrap/fcgiwrap.sock;
+#
+# gzip off;
+# #rewrite ^ https://$server_name$request_uri permanent;
+# rewrite ^/([^/]+/.*)?$ /cgit.cgi?url=$1 break;
+# }
error_page 403 /403.html;
location = /403.html {
root /usr/local/www/gitjoe/err;
@@ -112,7 +112,7 @@ http {
server {
listen 80;
- server_name cgit.gitjoe.xyz;
+ server_name repos.gitjoe.xyz;
root /usr/local/www/cgit;
try_files $uri @cgit;
index cgit.cgi;