0 title: "Gemigit" # title on the main page

1 database:

2 type: "sqlite3" # supported : sqlite3, mysql

3 url: "gemigit.db" # connection string or sqlite3 database path

4

5 gemini:

6 certificate: "cert.pem" # SSL certificate

7 key: "key.pem" # private key

8 address: "0.0.0.0" # address to listen on

9 port: 1965 # bind port for gemini request

10 templates: "./templates/" # templates directory

11

12 git:

13 https: false # show https instead of http in the repository pages

14 domain: "localhost" # domain for the http git request

15 remote:

16 enabled: false # read from a remote git server

17 address: "https://git.example.com" # address to fetch repositories from

18 key: "CHANGEME" # master key to send to the remote server

19 address: "0.0.0.0" # address to listen on, disabled if remote is enabled

20 port: 5555 # bind port for http git request, disabled if remote is enabled

21 #key: "CHANGEME" # master key having read/write access on all repositories

22

23 ldap:

24 enabled: false # logging using ldap credential

25 url: "ldaps://ldap.example.com" # url to the ldap server

26 attribute: "cn" # attribute associated with the username

27 binding: "ou=users,dc=example,dc=com"

28

29 users:

30 registration: true # allow registration, will be disabled if ldap is enabled

31

32 protection:

33 ip: 10 # Maximum connection attempts before the ip is blocked

34 account: 30 # Maximum connection attempts before the account is blocked

35 reset: 120 # Number of seconds before clearing the block on ip/accounts

36