version=pmwiki-2.2.130 ordered=1 urlencoded=1 agent=Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36 author=baytuch charset=UTF-8 csum= ctime=1597225400 host=91.228.147.58 name=Openbsd.Cgit rev=3 targets= text= [=%0a$ doas pkg_add cgit%0a =]%0a%0aInside /etc/httpd.conf:%0a%0a [=%0aserver "git.ircnow.org" {%0a listen on * port 80%0a location "/.well-known/acme-challenge/*" {%0a root "/acme"%0a request strip 2%0a }%0a location * {%0a block return 302 "https://$HTTP_HOST$REQUEST_URI"%0a }%0a}%0aserver "git.ircnow.org" {%0a listen on * tls port 443%0a tls {%0a certificate "/etc/ssl/git.ircnow.org.fullchain.pem"%0a key "/etc/ssl/private/git.ircnow.org.key" %0a }%0a location "/.well-known/acme-challenge/*" {%0a root "/acme"%0a request strip 2%0a no fastcgi%0a }%0a location "*~" {%0a block drop%0a }%0a location "/cgit.*" {%0a root "/cgit"%0a no fastcgi%0a }%0a root "/cgi-bin/cgit.cgi"%0a fastcgi socket "/run/slowcgi.sock"%0a}%0a =]%0a%0a%0aUnconfirmed: you may need 'no fastcgi' inside the acme block to enable renewal of certs.%0a%0aMake sure also to edit, like this /var/www/conf/cgitrc:%0a%0a [=%0aroot-title=Name cGIT repository%0aroot-desc=a fast webinterface for the git dscm%0a%0acss=/cgit.css%0alogo=/cgit.png%0afavicon=/favicon.png%0arobots=noindex, nofollow%0a%0aenable-index-links=1%0aenable-log-filecount=1%0aenable-log-linecount=1%0a%0asnapshots=tar.gz tar.bz2 zip%0a%0avirtual-root=/%0ascan-path=/repos%0a =]%0a%0aCreate new repo%0a%0a [=%0acd ~/%0amkdir repos%0agit init --bare my_project.git%0adoas mv my_project.git /var/www/repos/my_project.git%0adoas ln -s /var/www/repos/my_project.git /home/user/repos/my_project.git%0adoas chown user:user /var/www/repos/my_project.git%0adoas chown user:user /home/user/repos/my_project.git%0a%0agit clone user@ircnow.org:repos/my_project.git%0a%0a =] time=1598982709 author:1598982709=baytuch diff:1598982709:1598982222:=60,62d59%0a%3c %0a%3c virtual-root=/%0a%3c scan-path=/repos%0a host:1598982709=91.228.147.58 author:1598982222=baytuch diff:1598982222:1597225400:=1c1%0a%3c [=%0a---%0a> %3ccode>%0a3,4c3,4%0a%3c =]%0a%3c %0a---%0a> %3c/code>%0a> %0a6,7c6%0a%3c %0a%3c [=%0a---%0a> %3ccode>%0a27d25%0a%3c no fastcgi%0a39,41c37,39%0a%3c =]%0a%3c %0a%3c %0a---%0a> %0a> %3c/code>%0a> %0a44,75c42,45%0a%3c Make sure also to edit, like this /var/www/conf/cgitrc:%0a%3c %0a%3c [=%0a%3c root-title=Name cGIT repository%0a%3c root-desc=a fast webinterface for the git dscm%0a%3c %0a%3c css=/cgit.css%0a%3c logo=/cgit.png%0a%3c favicon=/favicon.png%0a%3c robots=noindex, nofollow%0a%3c %0a%3c enable-index-links=1%0a%3c enable-log-filecount=1%0a%3c enable-log-linecount=1%0a%3c %0a%3c snapshots=tar.gz tar.bz2 zip%0a%3c =]%0a%3c %0a%3c Create new repo%0a%3c %0a%3c [=%0a%3c cd ~/%0a%3c mkdir repos%0a%3c git init --bare my_project.git%0a%3c doas mv my_project.git /var/www/repos/my_project.git%0a%3c doas ln -s /var/www/repos/my_project.git /home/user/repos/my_project.git%0a%3c doas chown user:user /var/www/repos/my_project.git%0a%3c doas chown user:user /home/user/repos/my_project.git%0a%3c %0a%3c git clone user@ircnow.org:repos/my_project.git%0a%3c %0a%3c =]%0a\ No newline at end of file%0a---%0a> Make sure also to edit /var/www/conf/cgitrc:%0a> %3ccode>%0a> %0a> %3c/code>%0a\ No newline at end of file%0a host:1598982222=91.228.147.58 author:1597225400=jrmu diff:1597225400:1597225400:=1,45d0%0a%3c %3ccode>%0a%3c $ doas pkg_add cgit%0a%3c %3c/code>%0a%3c %0a%3c Inside /etc/httpd.conf:%0a%3c %3ccode>%0a%3c server "git.ircnow.org" {%0a%3c listen on * port 80%0a%3c location "/.well-known/acme-challenge/*" {%0a%3c root "/acme"%0a%3c request strip 2%0a%3c }%0a%3c location * {%0a%3c block return 302 "https://$HTTP_HOST$REQUEST_URI"%0a%3c }%0a%3c }%0a%3c server "git.ircnow.org" {%0a%3c listen on * tls port 443%0a%3c tls {%0a%3c certificate "/etc/ssl/git.ircnow.org.fullchain.pem"%0a%3c key "/etc/ssl/private/git.ircnow.org.key" %0a%3c }%0a%3c location "/.well-known/acme-challenge/*" {%0a%3c root "/acme"%0a%3c request strip 2%0a%3c }%0a%3c location "*~" {%0a%3c block drop%0a%3c }%0a%3c location "/cgit.*" {%0a%3c root "/cgit"%0a%3c no fastcgi%0a%3c }%0a%3c root "/cgi-bin/cgit.cgi"%0a%3c fastcgi socket "/run/slowcgi.sock"%0a%3c }%0a%3c %0a%3c %3c/code>%0a%3c %0a%3c Unconfirmed: you may need 'no fastcgi' inside the acme block to enable renewal of certs.%0a%3c %0a%3c Make sure also to edit /var/www/conf/cgitrc:%0a%3c %3ccode>%0a%3c %0a%3c %3c/code>%0a\ No newline at end of file%0a host:1597225400=38.81.163.143