char/sorcery
static-files based git repo viewer
git clone https://git.t4t.associates/char/sorcery
4c3ddd8
main
12#!/usr/bin/env -S deno run 34import ngx from "jsr:@char/ngx@0.2" ; 5import { sorcery } from "./sorcery.ngx.ts" ; 67const DOMAIN = "my-cool-git.example" ; 89export const config = ngx ( "server" , [ 10[ 11ngx . serverName ( DOMAIN ) , 12... ngx . listen () , 13... ngx . http3 () , 14... ngx . letsEncrypt ( DOMAIN ) , 15] , 16sorcery ({ 17proxyPass : "http://unix:/run/sorcery/sock" , 18cache : "/var/cache/sorcery" , 19repositories : "/home/git/public" , 20}) , 21]) ; 2223export const path = "sorcery.conf" ; 24if ( import . meta . main ) console . log ( config . build ()) ;