···11repo:
22+ # Directory containing git repositories to serve.
33+ # Relative path is resolved from *current working directory* not from
44+ # path to the config file.
25 scanPath: /var/www/git
66+77+ # Which filename will be treated as README file?
88+ # If a repository contains a file with exact matching filename to one from
99+ # this list, legit displays that file contents in repository top page.
1010+ # When multiple files match (e.g. a repository having both `readme` and
1111+ # `README.md`), the earlier one in the list will be shown.
312 readme:
413 - readme
1414+ # Filenames are case-sensitive.
515 - README
1616+ # You have to provide file extensions.
617 - readme.md
718 - README.md
1919+2020+ # What branch will be considered default branch?
2121+ # legit use default branch as a default ref for navigations.
822 mainBranch:
923 - master
1024 - main
2525+2626+# Runtime directories.
1127dirs:
2828+ # Path to a directory containing HTML templates.
2929+ # Templates are written in Go's html/template syntax.
3030+ # <https://pkg.go.dev/html/template>
3131+ # Relative path is resolved from *current working directory* not from
3232+ # path to the config file.
1233 templates: ./templates
3434+3535+ # Path to a directory containing static assets.
3636+ # User can access files in this directory by accessing "/static/*".
3737+ # Relative path is resolved from *current working directory* not from
3838+ # path to the config file.
1339 static: ./static
4040+1441meta:
1515- title: icy does git
1616- description: come get your free software
4242+ # Website's name.
4343+ title: legit
4444+4545+ # Website's description.
4646+ description: "web frontend for git repositories, written in Go"
4747+1748server:
4949+ # legit uses this strings for clone URL.
5050+ # `https://<name>/<directory>`
5151+ # In addition to hostname, you can include paths as well.
5252+ # This will NOT affect how web server behaves.
1853 name: github.com/pocka
5454+5555+ # A host/hostname to bind web server to.
1956 host: 0.0.0.0
5757+5858+ # TCP port legit's web server listens to.
2059 port: 5555