• Stars
    star
    187
  • Rank 199,752 (Top 5 %)
  • Language
    Go
  • License
    MIT License
  • Created over 1 year ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

web frontend for git, written in go
legit
-----

A git web frontend written in Go.

Pronounced however you like; I prefer channeling my inner beret-wearing
Frenchman, and saying "Oui, il est le git!"

But yeah it's pretty legit, no cap on god fr fr.


FEATURES

β€’ Fully customizable templates and stylesheets.
β€’ Cloning over http(s).
β€’ Less archaic HTML.
β€’ Not CGI.


INSTALLING

Clone it, 'go build' it.


CONFIG

Uses yaml for configuration. Looks for a 'config.yaml' in the current
directory by default; pass the '--config' flag to point it elsewhere.

Example config.yaml:

    repo:
      scanPath: /var/www/git
      readme:
        - readme
        - README
        - readme.md
        - README.md
      mainBranch:
        - master
        - main
      ignore:
        - foo
        - bar
    dirs:
      templates: ./templates
      static: ./static
    meta:
      title: git good
      description: i think it's a skill issue
    server:
      name: git.icyphox.sh
      host: 127.0.0.1
      port: 5555

These options are fairly self-explanatory, but of note are:

β€’ repo.scanPath: where all your git repos live (or die). legit doesn't
  traverse subdirs yet.
β€’ repo.readme: readme files to look for. Markdown isn't rendered.
β€’ repo.mainBranch: main branch names to look for.
β€’ repo.ignore: repos to ignore, relative to scanPath.
β€’ server.name: used for go-import meta tags and clone URLs.


NOTES

β€’ Run legit behind a TLS terminating proxy like relayd(8) or nginx.
β€’ Cloning only works in bare repos -- this is a limitation inherent to git. You
  can still view bare repos just fine in legit.
β€’ The default head.html template uses my CDN to fetch fonts -- you may
  or may not want this.
β€’ Pushing over https, while supported, is disabled because auth is a
  pain. Use ssh.
β€’ Paths are unveil(2)'d on OpenBSD.


IDEAS

β€’ "Private" repos only available over Tailscale.
β€’ Support or cgit-like filters (for readmes etc.).


LICENSE

legit is licensed under MIT.

More Repositories

1

shlide

πŸ–ΌοΈ a slide deck presentation tool written in pure bash
Shell
458
star
2

nicy

❄️ a nice and icy zsh and bash prompt in Nim
Nim
184
star
3

dotfiles

system configurations using nix
Nix
165
star
4

repl

🐚 an instant REPL for any command
Shell
76
star
5

vite

πŸŒ€ a static site generator that Just Worksβ„’; powers https://icyphox.sh
HTML
59
star
6

icyrc

#️⃣ a no bs irc client
C
54
star
7

fab

🌟 print fabulously in your terminal
Nim
49
star
8

ferricy

a 34-key split keyboard based on the Ferris Sweep
48
star
9

mdium

πŸ“„ publish your markdown to Medium, from the CLI
Python
48
star
10

crap

πŸ—‘οΈ `rm` files without fear
Nim
33
star
11

site

my digital home
CSS
24
star
12

nanoid.nim

πŸ†” the Nim implementation of NanoID
Nim
24
star
13

go-vite

vite, but in Go; powers https://icyphox.sh
Go
22
star
14

pw

πŸ” a mnml password manager
Shell
20
star
15

twsh

🐦 a twtxt client written in bash
Shell
12
star
16

asdf

πŸ’© scrapped ideas and garbage code
JavaScript
12
star
17

kanbash

an opinionated kanban board written in bash
Shell
11
star
18

fsrv

filehost server for x.icyphox.sh
Go
10
star
19

openring.py

generate a webring from rss feeds
Python
10
star
20

mael

[WIP] an experimental mail client written in bash (and a bit of python)
Shell
9
star
21

mawkdown

a subset of markdown, written in awk
Awk
8
star
22

detotated

how much detotated wam do you need for a server? (it's an IRC bot, move on)
Python
6
star
23

clef

πŸ”‘ in-memory key-value store, written in Nim
Nim
5
star
24

base16-icy-scheme

🎨 a 16-bit colorscheme
5
star
25

janny

clean up Kubernetes resources after a set TTL
Python
5
star
26

nit

:octocat: a Git implementation in Nim
Nim
4
star
27

bin

oralΓ© all my scripts an' shi
Shell
4
star
28

gitsocial-instance

πŸ‘₯ a federated and versioned social network
HTML
4
star
29

sup

⬆️ an scp based file upload tool
Nim
3
star
30

hugo-icydark-theme

✨ my version of the Hugo After-Dark theme
HTML
2
star
31

paprika

Go rewrite of Taigabot
Go
2
star
32

ferricy-zmk

zmk config for the ferricy split keyboard
2
star
33

python-tcp-flooder

This flooder is designed specifically to flood routers.
Python
2
star
34

r2wars-bots

r2wars bot attempts
Assembly
1
star
35

marko

πŸ€– a Twitter bot that tries to sound smart
Python
1
star
36

cyware19

Intro to RE β€” talk slides and other materials
C
1
star
37

goget

go-import meta tag server
Go
1
star
38

privychka

habit tracking service
Go
1
star
39

riskmanagement

πŸ“ lecture notes from RITx Cybersecurity Risk Management (CYBER503x)
1
star
40

resume

πŸ“„ my rΓ©sumΓ©
TeX
1
star
41

filechat

Semester II Computer Science Project for CBSE Grade 12 (LOL, sounds like something a school would call it)
C++
1
star